My mobile website has two header buttons and works perfectly in portrait mode on iPhone. However, I have encountered an issue - when switching to landscape mode and attempting to tap on the buttons, the native iPhone address bar covers the header, making it impossible to push the buttons.
The images provided demonstrate this problem.
After pressing one button, this is what occurs:
How can I resolve this problem?
Is there a way to detect if the iPhone browser bar is visible to the user?
Edit: If using Safari on your phone and turning it into landscape orientation while tapping near the top of the page, the address bar will appear, obstructing any fixed header bars on the page.
Edit: Changing the header position to fixed results in the inability to tap the header buttons when the orientation changes to landscape and the address bar appears.
Edit: For reference, here is a sample project that demonstrates the issue: . You can test this on an iPhone to observe the effect shown in the images.