Layout shift with custom elements

Hi, I have a custom element on top of my home page, but now I get a cumulative layout shift of 0.99

Does anyone know how to avoid the layout jumping around when placing a custom element?

Many thanks,

Michiel