Different icons for switch states (lovelace)

Hello. I didn´t find if it is possible to create two different icons (and colors) for On / OFF state of a switch (in lovelace or into lovelace) - on glance card. Any idea please?

Possible with andrey-git/home-assistant-custom-ui but it causes crash sometimes…

Do you think there is some other sollution?

download the custom card-mod card and apply a style with css