Strange behavior with button card and cardmod

I followed a youtube video to create some nice looking buttons for my rooms.
In the Home Assistant app on Android i have some strange behavior every time i come back to my main page though. It looks like it needs to redraw the img_cell every time.
You can see the behavior in this short video

Is there a way to avoid this, or is it actually normal?

This is the code for the extra buttons i’m using:

    card:
      type: custom:mushroom-chips-card
      chips:
        - type: template
          tap_action:
            action: toggle
          icon: mdi:ceiling-fan-light
          entity: light.kitchen_fan_lights
          card_mod:
            style: |
              ha-card {
                --chip-background: {{'rgba(166,207,152,1)' if is_state('light.kitchen_fan_lights', 'on') else 'rgba(244, 246, 255, .5)'}};
                padding: 5px!important;
                border-radius: 100px!important;
              }