Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Android keyboard covers input: how to find and fix it

PRF-186Medium impactCould addBy FunnelGuardPublished Updated
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

Where the visitor is lost
  1. Ad clickVisitor lands on mobile
  2. Tap a fieldKeyboard opens
  3. Fill the formField hidden, typing blind
  4. SubmitButton out of reach
  5. Lead or orderNever recorded

The break happens when the field is focused, so every later step is lost.

Form completion on AndroidExample numbers
Form completion on Android (example)Field visible: 32 %; Keyboard covers field: 19 %012253219Field visibleKeyboard covers field%

Example: illustrative numbers only, showing how a hidden field could lower completion.

How to check if your site has it

Test on a real Android phone
  1. Open the page in Chrome

    Use a real device if you can. Emulators often show the keyboard differently.

  2. Tap every field in turn

    Start with the lowest field on the page, then fields inside popups, sticky forms and checkout steps.

  3. 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.

  4. 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.

  5. Try landscape

    Rotate the phone. The keyboard can fill almost the whole screen.

How to fix it

Viewport tag that resizes content when the keyboard openshtml
<meta name="viewport" content="width=device-width, initial-scale=1, interactive-widget=resizes-content">
Layout rules that survive the keyboardcss
.form-wrap { min-height: 100vh; min-height: 100dvh; }
.modal { max-height: 100dvh; overflow-y: auto; }
.modal input, .modal textarea { scroll-margin-bottom: 120px; }
Scroll the focused field into viewjavascript
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);
});
Where to apply the fix
  1. 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.

  2. Add the CSS

    Appearance > Customize > Additional CSS. Replace 100vh heights on popup and form containers with 100dvh and allow overflow-y: auto.

  3. Check popup plugins

    Open the popup settings and turn off fixed-height or scroll-locked options for mobile, or test a different popup type.

Popup form on Android

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

Confirmation checklist
  • 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

Common causes and quick fixes
CauseFix
100vh containerUse 100dvh or min-height
Fixed bottom barHide or unpin it on small screens
Scroll-locked modalAllow overflow-y on the modal body
No scroll on focusAdd 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.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.