On this page
What this issue is
When a visitor taps a form field on an Android phone, the on-screen keyboard slides up and takes roughly the bottom half of the screen. Normally the browser scrolls the page so the field stays visible. Sometimes it does not, and the field, the label or the submit button ends up hidden behind the keyboard.
Why it costs you leads or sales
- Ad clickVisitor lands on mobile
- Tap a fieldKeyboard opens
- Fill the formField hidden, typing blind
- SubmitButton out of reach
- Lead or orderNever recorded
The break happens when the field is focused, so every later step is lost.
Example: illustrative numbers only, showing how a hidden field could lower completion.
How to check if your site has it
Open the page in Chrome
Use a real device if you can. Emulators often show the keyboard differently.
Tap every field in turn
Start with the lowest field on the page, then fields inside popups, sticky forms and checkout steps.
Check what you can see
The field, its label, any error message and the submit button should stay visible or reachable by a small scroll.
Repeat in other browsers
Try Samsung Internet and an in-app browser such as the one in Facebook or Instagram, where many ad clicks land.
Try landscape
Rotate the phone. The keyboard can fill almost the whole screen.
How to fix it
<meta name="viewport" content="width=device-width, initial-scale=1, interactive-widget=resizes-content">.form-wrap { min-height: 100vh; min-height: 100dvh; }
.modal { max-height: 100dvh; overflow-y: auto; }
.modal input, .modal textarea { scroll-margin-bottom: 120px; }document.addEventListener('focusin', function (e) {
var el = e.target;
if (!/^(INPUT|TEXTAREA|SELECT)$/.test(el.tagName)) return;
setTimeout(function () {
el.scrollIntoView({ block: 'center', behavior: 'smooth' });
}, 300);
});Check the viewport tag
It is usually in header.php or set by your theme or page builder. Use a child theme or a header snippet plugin rather than editing the theme directly.
Add the CSS
Appearance > Customize > Additional CSS. Replace
100vhheights on popup and form containers with100dvhand allowoverflow-y: auto.Check popup plugins
Open the popup settings and turn off fixed-height or scroll-locked options for mobile, or test a different popup type.
Edit theme.liquid
Online Store > Themes > Edit code. Check the viewport meta tag in layout/theme.liquid and add
interactive-widget=resizes-content.Add CSS
Put the rules in your theme's base CSS file. Look at sticky add-to-cart bars and cart drawers for fixed heights.
Fix heights
Select the section or modal and replace
100vhwith100dvhor min-height in the Style panel, using custom value entry where needed.Add the script
Project Settings > Custom Code > Footer, and paste the focus script in a script tag.
Check fixed elements
Set sticky bars and chat widgets to scroll with the page on mobile breakpoints.
Add custom code
In the funnel or website settings, paste the script into the footer tracking code area and the CSS into custom CSS.
Review popups and sticky bars
Test popups and surveys on Android. Remove fixed bottom elements on mobile if they sit over fields.
Check strips and lightboxes
In the editor, switch to the mobile view and check that forms in lightboxes can scroll. Avoid pinning or fixing form containers.
Use Velo if needed
If Velo is on, add the focus handler in the page code. Otherwise simplify the layout.
Add CSS
Design > Custom CSS. Replace fixed heights on form blocks and popups with
min-height.Add the script
Settings > Advanced > Code Injection > Footer, where code injection is available on your plan.
Create a Custom HTML tag
Paste the focus script in a script tag and fire it on All Pages or the form pages only.
Preview and publish
Use Preview mode on a phone, then publish. Prefer fixing the site code when you can.
Fix the source
Use
dvhunits, removeposition: fixedfrom elements near forms on small screens, and allow scrolling inside modals.Add the focus handler
Include the script on form pages and test in Chrome and Samsung Internet.
Before
- Modal sized to 100vh and fixed
- Keyboard covers the phone field
- Submit button hidden
After
- Modal uses 100dvh and scrolls
- Focused field is centred above the keyboard
- Submit button reachable
How to confirm it's fixed
- Every field stays visible when focused on a real Android phone
- The submit button can be reached without closing the keyboard
- Error messages appear above the keyboard
- Popups and checkout steps work in Chrome and Samsung Internet
- The in-app browser from your ad platform works
- Landscape mode still lets you reach the field
- A real test submission arrives in your inbox or CRM
How to prevent it happening again
| Cause | Fix |
|---|---|
| 100vh container | Use 100dvh or min-height |
| Fixed bottom bar | Hide or unpin it on small screens |
| Scroll-locked modal | Allow overflow-y on the modal body |
| No scroll on focus | Add scrollIntoView handler |
How FunnelGuard handles this
Questions people ask
Why does the Android keyboard cover my input field?
The page did not resize or scroll when the keyboard opened. Typical causes are a 100vh container, a fixed popup or bottom bar, or a script that locks scrolling.
How do I stop the keyboard hiding a form field on Android?
Use 100dvh instead of 100vh, allow modals to scroll, remove fixed bars near forms, and add interactive-widget=resizes-content to the viewport tag. A scrollIntoView call on focus is a useful fallback.
What does interactive-widget=resizes-content do?
It tells supporting browsers to resize the page when the on-screen keyboard opens, rather than overlaying it. Chrome on Android supports it. Browsers that do not support it ignore it.
Why does it only happen on some Android phones?
Browser version, keyboard app, screen size and in-app browsers all change how the viewport behaves. Test on a real device and in Chrome, Samsung Internet and the Facebook or Instagram browser.
Does a fixed bottom bar cause the keyboard problem?
Yes, it can. Fixed bars may sit above or beside the keyboard and cover the field or submit button. Hide or unpin them on small screens when a field is focused.
Can I use JavaScript to fix a field hidden by the keyboard?
Yes. Listen for focusin and call scrollIntoView({ block: 'center' }) after a short delay. Treat it as a fallback and fix the layout cause too.
Does FunnelGuard detect the keyboard covering a field?
No. It is not a current check and may be added later. FunnelGuard does run your real journeys and check steps, tracking and test leads, but you need a real-device test for this issue.
Related issues
- PRF-158Fixed bottom bar covers form submit buttonFix guide
- PRF-159Chat bubble covers the submit or checkout buttonFix guide
- PRF-165Inputs with font-size under 16 px cause iOS auto-zoomFix guide
- PRF-166Wrong mobile keyboard for field (no type=email/tel/inputmode)Fix guide
- PRF-167Autocomplete attributes missing so autofill failsFix guide
- PRF-175Layout broken in landscape orientationFix guide