I've run into a strange PWA layout issue too and tried just about everything! In a browser, my app runs fine (Safari, Chrome, Edge, Firefox). Soon as I install it as a PWA, in iOS I have a half inch empty gap at the top and in Android, the header goes up by half inch can't be accessed.
Any idea? It would be greatly appreciated!!