Problems with margin top, depending on device

That’s interesting considering your header is in the right place. So that control button is being loaded behind the header on initial load?

Please provide some code. Even better, a working example on StackBlitz.

I don’t think it is related to Android’s Edge-to-Edge since your header is correct but something to consider still - Edge to edge Android.