This is actually a Godot bug to do with the window layout when the viewport renders at a smaller size than the project defaults. And only in the web build.
Seems to happen on smaller screens.
I actually spent a lot of time trying to resolve and work around it but yeah a full screen toggle fixes it.
Need to get some time to track down the cause and fix it in engine.