Viewport doesn’t resize when keyboard opens, hiding input fields (iOS)

On iOS, with the address bar at the bottom, the page viewport doesn’t resize when the on-screen keyboard opens. Text input fields near the bottom of the page end up hidden behind the keyboard and the toolbar. The same page works correctly in Safari, where the layout shifts up and the input stays visible above the keyboard.