Facing issue with header element loading into the DOM

Hi Team,
I’m adding a html element dynamically into my header.
there are times when, the DOM is loaded without the dynamic html element.

You’ll need to add a bunch more detail about how you are adding (initiallizer? component? hbs and a plugin outlet?) what to where in order for anyone to have any idea what the problem might be, much less how to resolve it.