Flickering when using markdown card

Hi,

This is the template I use for a room header in my config:

# lovelace_gen

type: markdown
content: {{ room }}
style: |
  ha-card {
    color: white;
    font-weight: normal;
    font-family: var(--ha-card-header-font-family,);
    font-size: var(--ha-card-header-font-size, 24px);
    background-color: rgba(0, 0, 0, 0.0);
  }

It displays OK, but when loading the page there is a slight flickering and the markdown first shows with a background. Does anybody else see this behavior, or even better, knows how to prevent it ?

Thx !