Header doesn't freeze at the top of the screen

In editor it’s at the top but in preview the header goes a couple of centimetres down the screen and has a gap above it.

Ah, when I preview it on my dashboard it’s ok.