Custom HTML not applied in Edit Mode

Hi there!

Here’s a little conundrum that I’m facing. We use the following custom HTML in the app:
.gd-icon { 4filter: sepia(6%) saturate(250%) hue-rotate(135deg) brightness(76%) contrast(160%) grayscale(17%); 5}
It changes the color and adds other visual effects.
The thing is that this css isn’t applied in the edit mode. Could there be supplementary CSS we need to add to ensure its application across all modes?
I’ll be grateful for helping with this.

Kind regards,
Irina