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.
| Cause | What you see | Typical fix |
|---|---|---|
| Newer JavaScript syntax or API not supported in the visitor's Safari version | Script stops, buttons and menus are dead | Transpile 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 countdown | Use ISO format with a T: 2024-03-05T10:00:00 |
| 100vh on mobile | Content or sticky button hidden behind the browser bar | Use 100dvh or 100svh with a 100vh fallback |
| Missing -webkit- prefix or unsupported CSS | Layout or styling is off | Add the prefix or a fallback |
| Form quirks: input font size under 16px, type=date styling | Page zooms on focus, fields look wrong | Set input font-size to 16px or more |
| Third-party cookies and storage limits (ITP) | Login or embedded checkout fails | Use 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.
- Ad clickiPhone visitor lands on the page
- Page loadsLooks fine, no visible error
- Submit formJavaScript error in WebKit, nothing happens
- Lead in CRMNever created
- Conversion tagNever fires
A script error in Safari stops the form submit, so later steps never happen.
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
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').
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'.
Run the full journey
Fill in the form, open the menu, add to cart and start checkout. Note the first step that fails.
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.
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 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.
Fix date parsing
Use ISO 8601 strings with a T between date and time, or build dates from numbers.
Fix viewport height
Use dynamic viewport units with a fallback.
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.
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.
.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;
}// Fails in Safari:
// new Date('2024-03-05 10:00:00')
// Works everywhere:
const d = new Date('2024-03-05T10:00:00');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.
Add CSS fixes
Go to Appearance > Customize > Additional CSS (or a child theme stylesheet) and paste the CSS fixes.
Check theme and app scripts
In the console, see whether the error comes from the theme or an app. Update the theme or remove the app embed under Online Store > Themes > Customize > App embeds.
Edit theme CSS
In Online Store > Themes > Edit code, add the CSS to your main stylesheet in the assets folder.
Check custom HTML tags
Custom HTML tags often use modern JavaScript. Use Preview mode in Safari and look for errors, then rewrite with older syntax such as var and function.
Check custom code
Review Project Settings > Custom Code and per-page code for modern syntax. Replace 100vh sections with min-height settings and add the dvh fallback in an embed.
Check custom code blocks
Open the funnel or website step settings and review Custom JS/CSS and tracking code. Add the CSS fixes there and republish.
Review custom code
In Settings > Custom Code, check any added scripts. For Velo, test the page in Safari and avoid unsupported syntax in page code.
Use Custom CSS and Code Injection
Add CSS under Website > Website Tools > Custom CSS. Review scripts under Code Injection for errors.
Build for Safari
Set a browserslist target that includes Safari and iOS Safari, run Babel and autoprefixer, then redeploy.
How to confirm it's fixed
- 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
- 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
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.
Related issues
- PRF-195Third-party cookies blocked (Safari ITP) breaks login/checkout iframeFix guide
- PRF-194Page broken in in-app browsers (Instagram/Facebook/TikTok webview)Fix guide
- PRF-199Video format not supported in Safari (WebM only)Fix guide
- PRF-197Apple Pay/Google Pay button missing on supported deviceFix guide
- PRF-200Form autofill styles hide text in Chrome/SafariFix guide
- PRF-192Page broken in FirefoxFix guide