Latex background and text color

So I tried different thing like but nothing works. It looks like for some reason the code I put on the header opting of the card type doesn’t work, like this. It just keeps the images with a black background.

Do I have to configure something else on the MiKTeX Console or do something else on anki? It would be nice if someone could send me the HTTP the CSS and the code to put on the header

Example image

Edit: When I added this code to the style of the card the background got white

.nightMode .latex { filter: invert(0%); background-color:transparent; }

What are those different things you tried?

Changing the CSS will not affect Latex images background unless latex creates images with transparent background.

How your problem is different from that one? What did you try?