Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Page broken in Safari (iOS/macOS): how to find and fix it

PRF-191High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Safari runs on WebKit. On iPhone and iPad, every browser (Chrome, Firefox, Edge) must use WebKit too, so a WebKit bug hits all iOS visitors. Desktop Safari on macOS uses it as well.

A page is "broken in Safari" when something that works in Chrome fails there. Common forms of this: a button that does nothing, a form that will not submit, a layout that overflows, a menu that never opens, or a blank page after a JavaScript error.

Common causes of Safari-only breakage
CauseWhat you seeTypical fix
Newer JavaScript syntax or API not supported in the visitor's Safari versionScript stops, buttons and menus are deadTranspile with Babel or add a polyfill; check support on caniuse.com
Date parsing such as new Date('2024-03-05 10:00')Invalid Date, broken booking or countdownUse ISO format with a T: 2024-03-05T10:00:00
100vh on mobileContent or sticky button hidden behind the browser barUse 100dvh or 100svh with a 100vh fallback
Missing -webkit- prefix or unsupported CSSLayout or styling is offAdd the prefix or a fallback
Form quirks: input font size under 16px, type=date stylingPage zooms on focus, fields look wrongSet input font-size to 16px or more
Third-party cookies and storage limits (ITP)Login or embedded checkout failsUse first-party flows; see the related ITP issue

Why it costs you leads or sales

Safari is a major share of traffic on mobile, because every iPhone visitor uses WebKit. If your form or checkout fails there, those visitors cannot convert and you will not see an error. Your analytics just show fewer leads from that group.

It is also costly because the team usually tests in Chrome on a desktop. The bug can sit unnoticed for weeks while ad spend keeps sending iPhone users to the broken page.

Where an iPhone visitor drops out
  1. Ad clickiPhone visitor lands on the page
  2. Page loadsLooks fine, no visible error
  3. Submit formJavaScript error in WebKit, nothing happens
  4. Lead in CRMNever created
  5. Conversion tagNever fires

A script error in Safari stops the form submit, so later steps never happen.

Form conversion rate by browserExample numbers
Form conversion rate by browser (example)Chrome: 4.2 %; Safari (broken): 0.4 %; Safari (fixed): 4 %0234.20.44ChromeSafari (broken)Safari (fixed)%

Example: illustrative numbers showing how a Safari-only bug can drag down conversion while Chrome looks healthy.

How to check if your site has it

Test your page in Safari
  1. Open the page in desktop Safari

    On a Mac, open Safari, then go to Settings > Advanced and tick 'Show features for web developers' (older versions: 'Show Develop menu in menu bar').

  2. Read the console

    Press Option+Command+C to open the JavaScript console. Reload the page and look for red errors such as 'SyntaxError', 'TypeError' or 'undefined is not a function'.

  3. Run the full journey

    Fill in the form, open the menu, add to cart and start checkout. Note the first step that fails.

  4. Test an iPhone view

    In the Develop menu, choose Enter Responsive Design Mode and pick an iPhone size. Better, connect a real iPhone: on the phone turn on Settings > Safari > Advanced > Web Inspector, plug it in, then pick it in the Mac's Develop menu.

  5. Check the Safari version

    Older iOS versions lack newer features. Note which version your failing visitors use in your analytics and compare features on caniuse.com.

How to fix it

First find the exact error from the console. Then apply the fix that matches. The steps below cover the most frequent causes.

Fix the cause
  1. Fix JavaScript errors

    Replace unsupported syntax or APIs, or compile your code with Babel targeting Safari. Add a polyfill if you rely on a newer API.

  2. Fix date parsing

    Use ISO 8601 strings with a T between date and time, or build dates from numbers.

  3. Fix viewport height

    Use dynamic viewport units with a fallback.

  4. Fix form zoom and styling

    Set inputs to at least 16px font size so iOS does not zoom in on focus. Add appearance: none where native styling clashes.

  5. Remove or update the failing plugin or script

    If a third-party widget causes the error, update it, swap it, or load it only where it works.

Viewport height with fallback, and iOS-safe input sizecss
.hero {
  min-height: 100vh;   /* fallback */
  min-height: 100dvh;  /* Safari 15.4+ */
}

input, select, textarea {
  font-size: 16px;     /* stops iOS zoom on focus */
  -webkit-appearance: none;
  appearance: none;
}
Safe date parsingjavascript
// Fails in Safari:
// new Date('2024-03-05 10:00:00')

// Works everywhere:
const d = new Date('2024-03-05T10:00:00');
Where to apply the fix on your platform
  1. Find the culprit plugin or theme script

    Use the Safari console error to see the file path. Update the plugin or theme, or deactivate it on a staging copy to confirm.

  2. Add CSS fixes

    Go to Appearance > Customize > Additional CSS (or a child theme stylesheet) and paste the CSS fixes.

How to confirm it's fixed

Confirmation checks
  • The Safari console shows no red errors on page load
  • The form submits and shows the thank-you state on desktop Safari
  • The same form works on a real iPhone, not only in Responsive Design Mode
  • The lead appears in your inbox or CRM
  • The conversion tag fires after submit (check in your tag tool's preview or network tab)
  • Layout has no horizontal scroll and no content hidden behind the browser bar

How to prevent it happening again

Prevention habits
  • Test every release in Safari on Mac and on a real iPhone, not only Chrome
  • Set a browserslist that includes Safari and iOS versions your visitors use
  • Check caniuse.com before using a new CSS or JavaScript feature
  • Review new plugins, apps and tags in Safari before publishing
  • Compare conversion rate by browser each month to spot Safari drops
  • Run an automated check of your key journeys in a WebKit browser after every change
Safari experience before and after

Before

  • Form button does nothing on iPhone
  • Console shows a SyntaxError
  • Hero content hidden by the address bar
  • No leads from Safari visitors

After

  • Form submits and confirms
  • Console is clean
  • Layout fits with 100dvh fallback
  • Leads and conversion tags arrive

How FunnelGuard handles this

FunnelGuard detects this issue. A robot visitor runs your real journeys, such as lead forms and checkouts, in WebKit, the engine behind Safari. It uses a desktop Safari profile and an iPhone 14 profile. It checks each step, and whether the tracking hits and test leads arrive.

If a step fails, FunnelGuard re-checks it from a second region before sending one alert by email, Slack, Teams, WhatsApp, webhook or PagerDuty. The alert includes a screenshot and a likely cause. Test traffic is marked with utm_source=funnelguard and fg_test=1, and it stops before payment unless your store's test mode is set up. A Free plan covers 1 site and 2 journeys with daily checks and no card.

Questions people ask

Why is my website not working in Safari but fine in Chrome?

Safari uses the WebKit engine, which supports some JavaScript, CSS and form behaviour differently or later than Chrome. Open the page in Safari, check the Web Inspector console for errors, and fix the failing script or style.

Why is my form not submitting on iPhone?

The usual cause is a JavaScript error in WebKit that stops the submit handler, such as unsupported syntax or an invalid date. Check the console on a connected iPhone or in Safari, then fix or replace the failing script.

How do I test my website in Safari without a Mac?

Safari's developer tools need a Mac, so the best options are a real iPhone, a cloud browser-testing service, or an automated check that runs in WebKit. Chrome on a Windows PC will not show WebKit bugs.

Does Chrome on iPhone use the same engine as Safari?

Yes. Apple requires iPhone browsers to use WebKit, so Chrome, Firefox and Edge on iOS share Safari's rendering and JavaScript behaviour. A bug in Safari usually appears in them too.

Why does my page content hide behind the Safari address bar?

The cause is usually 100vh, which on mobile Safari includes the area behind the browser bar. Use min-height: 100dvh with a 100vh fallback so the layout matches the visible space.

Why does Safari zoom in when I tap a form field?

iOS Safari zooms into inputs with a font size under 16px. Set the input, select and textarea font size to 16px or more to stop it.

Can FunnelGuard tell me if my page is broken in Safari?

Yes. It runs your journeys in WebKit using desktop Safari and iPhone 14 profiles, and alerts you with a screenshot and likely cause if a step fails.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: WebKit runs, desktop Safari and iPhone 14 profiles.

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.