Asset 20 8 2
Does AI recommend your business? Run the free check →

Join 15,000 business owners, marketers and entrepreneurs. The Sunday newsletter you'll be annoyed only arrives once a week.

Article

How To Create A Landing Page That Works On Safari And Every Other Browser

If you are skim reading
To make a landing page work in Safari as well as Chrome, fix the handful of WebKit quirks Chrome never shows you (viewport height, form input size, sticky elements, autoplay video and autofill), then test the live page on a real iPhone and a real Mac before an

To make a landing page work in Safari as well as Chrome, fix the handful of WebKit quirks Chrome never shows you (viewport height, form input size, sticky elements, autoplay video and autofill), then test the live page on a real iPhone and a real Mac before any ad money goes on it. Chrome's mobile preview won't catch any of them, because it still runs Chrome's engine underneath.

There's a second job too. Safari limits the cookies tracking scripts rely on, so a page can look perfect and still under-count your conversions. Below you'll find copy-paste CSS for the layout bugs, the exact cookie rules WebKit publishes, a pre-launch process and a symptom table, so you stop blaming your ad targeting when the real problem is a broken button on iOS.

If it's your Facebook page rather than your landing page that's rendering wrong, this covers it: facebook page looks black or broken.

Why Safari breaks pages that look perfect in Chrome

Chrome, Edge, and most Android browsers all run on the same engine, Chromium. Safari does not. It runs on WebKit, and Apple updates it on its own schedule, supports CSS features late (sometimes years late), and applies privacy restrictions that Chrome does not bother with. That means a landing page you built and tested only on your work laptop in Chrome can look and behave completely differently the moment someone opens it on an iPhone. Opera shares the Chromium engine with Chrome and Edge, which is one reason Opera against Safari makes a useful pairing.

And a lot of people will open it on an iPhone. On most iPhones, other browser apps, including Chrome and Firefox for iPhone, have long run on WebKit underneath as well (Apple now allows other engines in some regions), so a large share of your mobile visitors get WebKit whichever browser icon they tapped. So when you think you are testing "Safari" versus "everything else," you are testing WebKit versus everything else, and WebKit is what most of your mobile audience is stuck with whether they chose Safari or not. When you want to automate that kind of check, my guide to Cypress alternatives compares browser testing tools.

The specific bugs to check before you launch

These are the ones I see break landing pages on a client's site or my own, again and again. Three CSS rules cover the worst of them, and you can paste them into your stylesheet as they are (rename the classes to match yours):

.hero { min-height: 100vh; min-height: 100dvh; }
input, select, textarea { font-size: 16px; }
.sticky-cta { position: -webkit-sticky; position: sticky; bottom: 0; padding-bottom: env(safe-area-inset-bottom); }

The first gives older browsers 100vh and newer ones 100dvh, so the hero stops hiding behind Safari's address bar. The second stops iOS zooming in when someone taps a field. The third keeps your call to action bar stuck to the bottom in Safari and pads it clear of the iPhone's home bar. Here's the full list, with what each bug looks like:

  • The 100vh problem. On mobile Safari, height: 100vh includes the space behind the address bar, so your full-height hero section gets cut off or your sticky footer sits underneath the browser chrome. Use 100dvh (dynamic viewport height) instead, with a fallback of a fixed pixel height for older browsers.
  • Input font size under 16px. If a form field has a font-size smaller than 16px, iOS Safari auto-zooms in when someone taps it, and on a lot of pages that zoom never resets, so the visitor is left staring at a zoomed-in form they cannot easily fill in or submit. Set form inputs to 16px minimum, always.
  • Sticky elements need the prefix. Safari has needed -webkit-sticky alongside plain sticky for years. Miss it and your sticky CTA bar just scrolls away with the page.
  • Flexbox gap. Older Safari versions don't support gap in flex containers. If any of your traffic is on an older iPad still limping along on an unsupported iOS version, your columns will overlap or sit flush with no spacing.
  • Autofill styling. Safari forces its own yellow-ish background on autofilled fields and largely ignores your CSS. The fix is a -webkit-box-shadow: 0 0 0 1000px white inset trick on the input, which is ugly but works.
  • Video autoplay. A background video that plays fine in Chrome will simply not play in Safari unless the video tag has both muted and playsinline attributes. Forget one of them and your hero video is a static black box on every iPhone.
  • Date pickers. An input type="date" renders as a native, unstyled Safari picker that looks nothing like the rest of your form and cannot be restyled with normal CSS. If your webinar sign-up form asks for a date, budget time for this or use a JavaScript date library instead of the native input.

The tracking problem nobody mentions in the "make it responsive" checklists

Here is the part most landing page guides skip entirely: even a page that looks flawless on Safari can still quietly break your conversion tracking. Safari's Intelligent Tracking Prevention (ITP) blocks third-party cookies by default, and WebKit's own tracking prevention documentation sets two rules for the first-party cookies your scripts write. Cookies created in JavaScript, and all other storage a script can write, are deleted after 7 days of no user interaction with the website. And when ITP spots click IDs added to the link a visitor arrived on (which is how ad clicks usually land), cookies created in JavaScript on that landing page are capped at 24 hours. That means a browser-only pixel, if you are relying on it for retargeting or attribution, can lose Safari visitors who come back later. If you have ever looked at your ad platform's numbers and thought "these people converted but the pixel didn't fire," Safari is very often the reason. I wrote a full walkthrough on setting up conversion tracking for Meta ad campaigns that covers how to set this up with server-side tracking (Conversions API) precisely because relying on the browser pixel alone means you are flying blind on every iPhone visitor.

Here's how that plays out. Someone taps your ad on an iPhone on Monday, arrives with a click ID in the URL, and your script saves it in a cookie. Under the 24-hour cap that cookie can be gone by Tuesday. If they come back on Friday by typing your address and register, the browser has nothing left to tie the sign-up to Monday's click. Sending the conversion from your server as well as the browser means the record doesn't depend on a cookie surviving in Safari.

A real example: the webinar page that "worked fine"

A coaching client of mine ran a leadership webinar last year and built the registration page herself using a popular page builder, tested it on her laptop in Chrome, checked it looked fine on her phone (an Android), and launched a Facebook ad campaign pointing straight at it. Two weeks in, the cost per registration had crept up to nearly three times what she was expecting, and she assumed the targeting or the ad copy was the problem, so she rewrote the ad three times.

The actual problem was the page. The sticky "Reserve my seat" button sat fixed at the bottom of the screen on Android and Chrome, but on iPhone Safari it overlapped with the browser's own bottom toolbar, so the last twenty pixels of the button, including the tap target, were unreachable on a lot of iPhone models. She lost that battle to something she never even opened, because she never tested on an actual iPhone. We fixed the padding and the sticky positioning, retested on three different iOS versions, and cost per registration dropped back down within days without touching the ad at all. If she had been running a webinar and needed a fuller platform comparison at the same time, our roundup of webinar software tools covers which platforms handle their own registration pages more reliably across browsers so this is one less thing to build from scratch.

The padding fix itself is two small changes. Add viewport-fit=cover to the viewport meta tag, so it reads <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">, then give the fixed button padding-bottom: env(safe-area-inset-bottom). On iPhones with a home bar that lifts the tap target clear of it; on screens without one the value is zero, so nothing else moves.

The uncomfortable bit: Chrome DevTools "device mode" is not real cross-browser testing

Most people, including a fair few agencies, will tell you they have tested a page "on mobile" because they opened Chrome DevTools, clicked the little phone icon, and resized the window to look like an iPhone. That tells you almost nothing about Safari. DevTools' device emulation is still running the Chromium rendering engine underneath, it just changes the viewport size. It will not reproduce a single one of the WebKit-specific bugs above, not the vh issue, not the flexbox gap, not the autofill styling, none of it. Agencies rarely say this out loud because it means extra billable hours testing on real devices, and clients rarely ask because they assume "responsive" and "cross-browser" are the same job. They are not. Responsive means the layout resizes. Cross-browser means it works once it resizes. The only honest way to check is to open the live page on a real Safari browser, ideally a real iPhone and a real Mac, not an emulator pretending to be one.

A step-by-step process that catches these before launch

  1. Build with dvh, not vh, from the start. Retrofitting this after the layout is finished takes far longer than writing it correctly the first time.
  2. Set every form input to 16px font-size minimum. Add this to your base stylesheet so nobody forgets it on a new form.
  3. Add vendor prefixes or run autoprefixer. Tools like PostCSS's autoprefixer plugin handle the -webkit- versions automatically so you do not have to remember them by hand.
  4. Test the form's autofill behaviour on an actual iPhone with saved autofill data turned on, not a fresh incognito window.
  5. Check every video and animation. Confirm the muted and playsinline attributes are on any autoplaying video before you leave staging.
  6. Load the page in Safari's Web Inspector (connect an iPhone to a Mac via cable and use Safari's Develop menu). If the Develop menu isn't in the Mac's menu bar, Apple's Develop menu guide says to choose Safari > Settings, click Advanced, then select Show features for web developers. Allow Web Inspector in Safari's Advanced settings on the iPhone as well, or the phone won't appear in that menu to see genuine console errors, not Chrome's version of them.
  7. Check tracking with the pixel helper on Safari specifically, ideally with a fresh iPhone or private browsing session, before you trust your ad platform's numbers.
  8. Use a real device lab or a service like BrowserStack if you do not own an iPhone or a Mac, so you are testing genuine Safari rendering rather than a guess.
  9. Test on at least two iOS versions, because a fair number of users are still one or two versions behind the newest release, and older WebKit versions have their own gaps in support.
  10. Do this before launch, not after the ad spend has already started. Before the ads go on, run three tests on a real iPhone: tap every form field and submit the form, scroll the whole page with the call to action bar in view, and complete one test conversion while you watch for it in your ad platform.

If you are building the page yourself

Not every marketer wants to write raw CSS, and you do not have to. Most modern page builders have improved their cross-browser handling considerably in the last couple of years, but they are not all equal, and some still ship themes that lean on unsupported CSS or unoptimised video embeds. Our comparison of landing page builders for marketers flags which ones handle mobile rendering and Safari quirks out of the box, so you are not starting from a template that already has the vh bug baked in.

If you would rather have an AI tool audit an existing page for you, tools like Claude's browser extension can now open a live page and flag obvious rendering or accessibility issues while you watch, which is a useful first pass before you bring in a developer. I wrote about testing that on my own site in Week 8 of my rebuild diary, where letting an AI loose on my own pages caught a handful of things I had missed simply because I was too close to the work.

Work with me

Want AI doing the heavy lifting in your marketing?

I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.

Another one I get asked a lot: What is a landing page and why do you need one?

Why this matters more in 2026 than it did five years ago

WebKit's tracking prevention rules have been tightened repeatedly over the years, a large share of ad clicks now land on phones, and the gap between "looks fine on my laptop" and "works for every visitor" keeps widening rather than closing. If you are trying to grow a business through 2026, a landing page that quietly fails a large share of your iPhone visitors before they even see your offer is not a small technical detail, it is a direct hit to your revenue that most people never diagnose because the symptoms look exactly like a bad ad or weak copy.

If you need a page for one offer without touching your main site, my roundup of the best landing page builders compares the options.

I've also listed the website glitches that lose you visitors. If you want more engagement, interactive calculators on your website are worth testing.

Got expertise to share? Take a look at a live checked list of web design sites that take guest posts. If that's your next question, see a shortlist of time saving browser extensions.

I run AI training and workshops for teams, and help businesses with AI enablement and workflow automation, so the busywork runs itself and people get time back. Most of that work is with SaaS marketing teams and small businesses. Here's how we can work together.

Safari problems at a glance

What you seeCauseFix
Hero section cut off at the bottom on iPhone100vh includes the space behind the address barmin-height: 100dvh, with 100vh above it as a fallback
Page zooms in when someone taps a form fieldInput font size under 16pxSet inputs, selects and text areas to 16px
Call to action bar scrolls away with the pageMissing the -webkit-sticky prefixposition: -webkit-sticky before position: sticky
Hero video is a static black boxVideo tag missing muted or playsinlineAdd both attributes
Button sits under the bottom toolbar or home barNo safe-area paddingviewport-fit=cover plus env(safe-area-inset-bottom)
Autofilled fields turn yellowSafari's own autofill stylingThe inset box-shadow trick on the input
Sign-ups missing from ad reportsScript-set cookies deleted (24 hours after a click-ID landing, or 7 days without interaction)Send conversions server-side as well as through the pixel

Frequently asked questions

How do I turn on Safari's Develop menu on a Mac?

Choose Safari > Settings, click Advanced, then select Show features for web developers. The Develop menu then appears in the menu bar, and that's where a connected iPhone shows up for Web Inspector.

Do Chrome and Firefox on iPhone have the same problems as Safari?

On most iPhones, yes, because those apps have long used WebKit underneath, so the layout bugs and cookie rules on this page apply to them too. Apple now allows other browser engines in some regions, but don't assume your visitors are using one: test in Safari and you've covered the bulk of iPhone traffic.

Why is my Meta pixel showing fewer conversions than my actual sales?

Safari blocks third-party cookies and deletes cookies your scripts create after 7 days without interaction, or caps them at 24 hours when the visitor arrived on a link carrying click IDs. So conversions from iPhone visitors who come back later are often under-reported. Sending events from your server as well as the browser pixel, which Meta calls the Conversions API, means a conversion doesn't depend on a cookie surviving in Safari.

Does Chrome DevTools' mobile view count as testing on Safari?

No, and this trips up a lot of people. DevTools' device mode only resizes the Chromium browser window, it does not switch rendering engines, so none of Safari's actual bugs (viewport height, flexbox gap, autofill styling) will show up. The only reliable test is a real Safari browser, ideally on a real iPhone.

Web designers with Safari fixes of their own to share can contribute a guest article on web design for this site.

Run a business, a brand or a blog? I feature tools, products and expert guest posts for an audience of 15,000. See how it works

Published and maintained by the Lilach Bullock team, covering marketing, AI and business growth.
Your buyers are asking AI who to use. Does it say you?

See for free whether ChatGPT, Claude, Perplexity, Gemini and Google name you, and get the plan to become the answer.

Check my AI visibility →
Sundays only

Get the Sunday newsletter.

One email a week. AI experiments, marketing tactics, and the workflows Lilach is building right now in her own business.

Subscribe free

Let’s get your marketing running on AI.

Book a free 30-minute call

We figure out what you need, where AI fits in, and what working together would look like.

Book the call →

Or take the 30-second calculator

You’ll see the hours and the money quietly leaking out of your week, and the three workflows worth building first.

Take the calculator →

Or grab the free AI resource library

Prompt packs, templates, checklists, and swipe files. The exact tools I build for paying clients. Yours, free.

Get the library →
Keep reading

More from the blog.