Check 07.12 · Mobile-first and responsive design

Test mobile forms and conversions

Test forms, calls and payments on real smartphones, fix keyboards, autofill and errors, then compare conversions by device.

Priority
Critical
Difficulty
Intermediate
Estimated time
2 h to 1 day
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

A site can be perfectly indexed on mobile and convert nothing on mobile: a quote form whose button disappears under the keyboard, a phone field that opens an alphabetic keyboard, a checkout blocked by a CAPTCHA that cannot be solved with a finger. This check means going through each important conversion on real phones, fixing the HTML of the fields, then comparing mobile and desktop conversion rates in your analytics tool. The outcome: a completed test grid, forms that open the right keyboard and fill in automatically, and a conversion gap between devices that you can explain.

Why it matters

The traffic you win through SEO and in generative engines largely arrives on mobile, and Google evaluates your pages in their mobile version. If conversion fails at this stage, your visibility efforts produce no quote requests, no calls and no sales.

On a phone, the failure points are specific:

  • the virtual keyboard takes up a large part of the screen, hides the submit button and changes depending on the field type;
  • autofill from the browser and the password manager only works if the fields are properly annotated;
  • tap targets that are too small or too close together cause input errors;
  • the mobile network, slower and less stable, makes poorly handled submissions fail;
  • overlapping layers (cookie banner, chat bubble, banner) often cover the submit button at the bottom of the screen.

These defects are invisible from a desktop computer, even in the developer tools' device mode, which shows neither the real keyboard nor the behavior of Safari on iOS.

What it improves

  • Mobile conversion Fewer abandoned forms, missed calls and blocked carts.
  • Data quality Autofill reduces mistakes in email addresses and phone numbers.
  • Measurement Reliable conversion events by device type, hence usable attribution.
  • Accessibility autocomplete annotations also meet WCAG success criterion 1.3.5 (Identify Input Purpose).
  • Rankings No direct effect. The effect is commercial.

How to check

1. Compare conversion rates by device. In Google Analytics 4, open Explore, create a free-form exploration with the “Device category” dimension and your key events (form_submit, generate_lead, purchase or your own names). A mobile rate far below the desktop rate on the same page, with comparable traffic, points to a problem to test. In Matomo, the same breakdown is done with the device type report combined with your goals.

2. Identify the pages concerned. In Search Console, the Performance report filtered on the Mobile device shows the pages receiving the most mobile clicks: test those first.

3. Check the HTML of the fields. In the browser console, on the form page:

console.table([...document.querySelectorAll('input, select, textarea')]
  .filter((champ) => champ.type !== 'hidden')
  .map((champ) => ({
    nom: champ.name,
    type: champ.type,
    autocomplete: champ.getAttribute('autocomplete') ?? '(missing)',
    inputmode: champ.getAttribute('inputmode') ?? '',
    label: champ.labels?.length ? 'yes' : 'NO',
    police: getComputedStyle(champ).fontSize,
  })));

Expected result: each field has a label, a suitable type, an autocomplete value for personal data, and a font size of at least 16 px.

4. Go through the journey on two real phones, an iPhone with Safari and an Android phone with Chrome, using the grid in step 2.

How to implement

Step 1 — List the conversions to test

One row per journey that brings in business:

Journey Entry page Steps Event measured Priority
Quote request /entretien-chaudiere-nantes/ 5-field form, confirmation generate_lead 1
Call All, header button tel: link click_tel 1
Purchase /thes/the-vert/ Product page, cart, checkout, payment purchase 1
Free trial /tarifs/ Sign-up, confirmation email sign_up 2
Newsletter Articles Email field newsletter_signup 3

Example values. Add journeys that start in a third-party tool (appointment booking, external payment): they often fail on mobile without anyone noticing.

Step 2 — Test on real devices

Minimum: a recent iPhone with Safari and an Android phone with Chrome, in a private window, not signed in. Complete each journey to the end and fill in the grid:

Check Passes if
Keyboard Email: keyboard with @. Phone and postal code: numeric keypad.
Autofill The browser suggests name, email, phone, address; one tap fills in the fields.
Zoom on input The page does not zoom when a field gets focus. Safari on iOS zooms in on fields whose font is smaller than 16 px.
Labels Visible above the fields, not just as placeholder text that disappears on input.
Submit button Reachable with the keyboard open, not covered by the cookie banner, a chat bubble or a banner.
Errors Message next to the field concerned, input kept, scroll to the first error.
CAPTCHA Can be completed with a finger, or invisible.
Slow network On simulated 3G, the submission goes through; a double tap does not submit twice.
Confirmation Message or thank-you page displayed, email received, a single conversion event recorded.
Consent refused The form also works after “Reject all”.
Call and email The number opens the dialer, the address opens the email app.
Payment Mobile payment methods offered if your provider supports them; return to the site after bank authentication.

To see the phone's console and network activity:

  • Android: enable Developer options and USB debugging on the phone, connect it, then open chrome://inspect#devices in Chrome on the computer and click “inspect” next to the tab.
  • iPhone: turn on Web Inspector in Safari's Advanced settings on the iPhone, connect it to a Mac, turn on “Show features for web developers” in Safari's Advanced settings on the Mac, then open the Develop menu and choose the device.

Without a set of phones, a real-device testing service such as BrowserStack gives access to many models, for a fee. Chrome's device mode is still useful for layout, but does not replace a real phone for the keyboard and autofill.

Warning: testing on the production site creates real requests and sometimes real orders. Let the sales team know, use an identifiable email address and cancel test orders, or work on an identical staging environment.

Step 3 — Fix the HTML of the fields

Quote form template:

<form action="/devis" method="post">
  <label for="nom">Full name</label>
  <input id="nom" name="nom" type="text" autocomplete="name" required>

  <label for="email">Email</label>
  <input id="email" name="email" type="email" autocomplete="email" autocapitalize="off" spellcheck="false" required>

  <label for="telephone">Phone</label>
  <input id="telephone" name="telephone" type="tel" autocomplete="tel" required>

  <label for="code-postal">Postal code</label>
  <input id="code-postal" name="code_postal" type="text" inputmode="numeric" autocomplete="postal-code" maxlength="5">

  <label for="besoin">What you need</label>
  <textarea id="besoin" name="besoin" rows="4"></textarea>

  <button type="submit">Get my quote</button>
</form>
input,
select,
textarea {
  font-size: 16px;
  min-height: 44px;
  width: 100%;
}

button[type="submit"] {
  min-height: 48px;
  width: 100%;
}

Rules:

  • type: email, tel, url, number only for quantities, date if the native picker is suitable.
  • inputmode: for a postal code, an order number or a verification code, inputmode="numeric" on a text field opens the numeric keypad without the arrows of a number field.
  • autocomplete: name, given-name, family-name, email, tel, organization, street-address, postal-code, address-level2 (city), country, one-time-code for a code received by SMS, new-password or current-password. Do not use autocomplete="off" on personal data.
  • Fewer fields: each field removed is one less step for the finger. See simplify navigation and forms (opens in a new tab).
  • Call links: <a href="tel:+33240000000">02 40 00 00 00</a>, with the number in international format in the attribute.

The 44 and 48 px sizes are comfort guidelines for fingers; see size tap targets appropriately (opens in a new tab).

Step 4 — Measure by device

  1. Check that each conversion fires a single event, marked as a key event in GA4: Admin > Data display > Events, star next to the event. See track conversions, forms and quote requests (opens in a new tab).
  2. If you use enhanced measurement, form interactions produce form_start and form_submit: the gap between the two, by device category, gives a form abandonment rate.
  3. In Explore > Funnel exploration, build the journey funnel (page view, form_start, form_submit, confirmation page) and break it down by device category.
  4. To understand an abandonment, a session recording tool such as Microsoft Clarity (free) shows repeated taps and the areas where visitors get stuck; filter on mobile devices. It is subject to consent.

Deliverable: a monthly table per journey, with the mobile conversion rate, the desktop rate, the gap and the cause identified during testing.

Step 5 — Automate a regression test

A Playwright test replays the journey with a smartphone profile at each release. File tests/devis-mobile.spec.ts, run with npx playwright test, on a staging environment:

import { test, expect, devices } from '@playwright/test';

test.use({ ...devices['Pixel 5'] });

test('quote form submits successfully on mobile', async ({ page }) => {
  await page.goto('https://preprod.example.com/devis/');
  await page.getByLabel('Full name').fill('Automated test');
  await page.getByLabel('Email').fill('[email protected]');
  await page.getByLabel('Phone').fill('0600000000');

  const envoi = page.getByRole('button', { name: 'Get my quote' });
  await envoi.scrollIntoViewIfNeeded();
  await expect(envoi).toBeVisible();
  await envoi.click();

  await expect(page.getByText('Thank you')).toBeVisible();
});

The test checks that the journey can be completed by touch on a small screen; it does not replace going through it on real phones, which alone show the real keyboard and autofill. See integrate SEO, performance and accessibility tests into CI/CD (opens in a new tab).

WordPress

Versions WordPress 6.4 and later; Contact Form 7 5.3 and later, WooCommerce 8 and later.

  • Contact Form 7: the autocomplete: option goes in the form tag, for example [email* your-email autocomplete:email], [tel your-tel autocomplete:tel] and [text* your-name autocomplete:name]. Use the email and tel tags, not text, to get the right keyboard.
  • WPForms, Gravity Forms, Formidable: use the Email, Phone and Name field types rather than a generic text field; check with the script in the “How to check” section that the autocomplete attribute is actually output, and add it through the field's dedicated setting if your version offers one.
  • WooCommerce: checkout fields already carry their autocomplete attributes, with the Checkout block, the default since WooCommerce 8.3, as with the classic shortcode checkout. Above all, test the trip through the payment gateway and the return to the confirmation page.
  • Theme: if the field font is smaller than 16 px, add the CSS rule from step 3 in Appearance > Customize > Additional CSS or in the site editor styles.

Shopify

Versions Horizon and Dawn Online Store 2.0 themes, all plans, November 2026.

Checkout is managed by Shopify: you do not edit its fields, but test it end to end on mobile, payment methods included. The contact form of the official themes already carries type="email", type="tel" and the autocomplete attributes; it is in blocks/contact-form.liquid for Horizon and sections/contact-form.liquid for Dawn ({% form 'contact' %} tag). On a third-party or older theme, check these attributes in the equivalent file and add any that are missing. Form and appointment booking apps are tested like the other journeys.

Laravel

Versions Laravel 10 to 13.

In a Blade view, keep the input and display the error next to the field:

<label for="email">Email</label>
<input id="email" name="email" type="email" autocomplete="email" autocapitalize="off" spellcheck="false"
       value="{{ old('email') }}" aria-invalid="{{ $errors->has('email') ? 'true' : 'false' }}" aria-describedby="email-erreur" required>
@error('email')
    <p id="email-erreur" class="erreur">{{ $message }}</p>
@enderror

Protect the submission against double taps by disabling the button on submit, and on the server with rate limiting on the route (throttle).

Common mistakes

  • Testing only in device mode on a desktop computer: neither the real keyboard, nor autofill, nor Safari's zoom shows up there.
  • type="number" for a phone number or postal code: useless arrows, leading zeros lost. Use tel or inputmode="numeric".
  • autocomplete="off" set by default on the whole form.
  • Labels replaced by placeholder text that disappears on input.
  • A chat bubble or cookie banner over the submit button, at the bottom of the screen.
  • A conversion counted twice when the confirmation page is reloaded, which skews the comparison between devices. See fix duplicate conversions (opens in a new tab).
  • Forgetting external journeys: payment, appointments or quotes hosted by a third-party provider.

Frequently asked questions

How can I test a form on mobile without buying phones?

Start with the team's phones: an iPhone with Safari and an Android phone with Chrome cover the essentials. Device mode in Chrome's developer tools is useful for layout, but shows neither the real keyboard nor autofill. For more models, real-device testing services such as BrowserStack rent remote access to physical phones through a paid subscription.

Why does the iPhone zoom in when you tap a form field?

Safari on iOS enlarges the page when an input field whose font is smaller than 16 pixels gets focus. The solution is to set the font size of input, select and textarea fields to at least 16 pixels. Avoid blocking zoom in the viewport tag: it removes the symptom but also prevents people with low vision from enlarging the page.

Which autocomplete value should I use for each field?

The autocomplete attribute tells the browser which data to expect: name for the full name, email, tel for the phone number, street-address, postal-code and address-level2 for the address, organization for the company, one-time-code for a code received by SMS. With these values, the browser offers to fill in the form in a single tap. Do not use autocomplete off on personal data.

Why is my mobile conversion rate lower than on desktop?

A gap between mobile and desktop is common, because usage differs: people often compare on their phone and buy later on a computer. It becomes suspicious when it is large on the same page with comparable traffic, or when the form start rate is normal but submissions are rare. Then test the journey on a real phone: the keyboard, a hidden button, a validation error or a blocked payment are the usual causes.

Updated on

Topic checklist (PDF)

And now?

In the “Mobile-first and responsive design” topic

  1. Check responsive layout on smartphones and tablets
  2. Check the viewport meta tag
  3. Eliminate unintended horizontal scrolling
  4. Ensure legible text size
  5. Size tap targets appropriately
  6. Optimize mobile menus
  7. Check mobile/desktop content parity
  8. Check metadata parity
  9. Check structured data parity
  10. Check internal linking parity
  11. Avoid intrusive interstitials
  12. Test mobile forms and conversions
  13. Test Googlebot Smartphone rendering