On this page
What this issue is
Modern iPhones have areas of the screen that hardware covers or curves away: the notch or Dynamic Island at the top, rounded corners, and the home indicator bar at the bottom. Apple calls the usable region the safe area.
Normally Safari keeps your page inside the safe area for you. The problem appears when you opt in to full-screen layout with viewport-fit=cover, or when the page runs in landscape, as a home-screen web app, or in an in-app browser. Then fixed headers, sticky bottom bars, full-width banners and side-edge content can land under the hardware.
Why it costs you leads or sales
The impact is usually low, but it hits the most important spots. A sticky "Buy now" or "Call" bar at the bottom can sit under the home indicator, so taps trigger a system swipe instead of your button. In landscape, form fields and labels can be cut off by the notch side. A top banner or logo can be partly hidden.
Visitors rarely report this. They just miss the button, give up or leave. Because it only shows on certain iPhones and orientations, it often goes unnoticed in desktop testing.
- Product pageLoads fine
- Sticky buy barDrawn under home indicator
- Tap on buttonTriggers system gesture or misses
- CheckoutNever reached
A sticky checkout bar sits under the home indicator on an iPhone.
How to check if your site has it
Look at your viewport tag
View the page source and find
<meta name="viewport">. If it containsviewport-fit=cover, you must handle safe areas yourself.Find fixed and sticky elements
Search your CSS for
position: fixedandposition: sticky, especially bars withbottom: 0,top: 0,left: 0orright: 0.Test in a simulator
In Xcode's iOS Simulator, or Safari's Responsive Design Mode, load the page on an iPhone with a notch or Dynamic Island. Browser dev tools on desktop do not always draw the safe areas, so a real device or simulator is more reliable.
Rotate to landscape
Turn the phone sideways and check that nothing touches the notch side, the rounded corners or the bottom bar.
Test in-app browsers
Open your link from Instagram, Facebook or email and check the same pages, because these browsers draw their own bars.
How to fix it
The fix has two parts. Keep viewport-fit=cover only if you want edge-to-edge backgrounds, then add padding equal to the safe-area insets wherever content touches an edge. If you do not need edge-to-edge, remove viewport-fit=cover and Safari handles the safe area for you.
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">.sticky-cta {
position: fixed;
left: 0;
right: 0;
bottom: 0;
padding: 12px 16px;
/* fallback first, then the safe-area value */
padding-bottom: 12px;
padding-bottom: calc(12px + env(safe-area-inset-bottom));
padding-left: max(16px, env(safe-area-inset-left));
padding-right: max(16px, env(safe-area-inset-right));
}
.site-header {
padding-top: env(safe-area-inset-top);
}Find the viewport tag
Check your theme's header.php or the theme options. Remove
viewport-fit=coverif you do not need it. Do not edit a parent theme directly; use a child theme.Add the CSS
Go to Appearance > Customize > Additional CSS and paste the safe-area rules for your sticky bar or header class.
Edit theme.liquid
In Online Store > Themes > Edit code, open layout/theme.liquid and check the viewport meta tag.
Add the CSS
Add the rules to your theme's main CSS file (often in the assets folder) for the sticky add-to-cart bar or announcement bar. Class names depend on your theme.
Add custom code
In Site settings > Custom code, add a
<style>block with the safe-area rules in the head. Webflow sets its own viewport tag, so you mainly need the padding rules.Target the right class
Use the class of your fixed element, then publish and test on a phone.
Update the head
Set the viewport tag as needed in your base template.
Update the stylesheet
Add
env(safe-area-inset-*)padding to every fixed or full-width element at the screen edges.
Before
- Bar sits flush with the screen bottom
- Button overlaps the home indicator
- In landscape, text touches the notch side
After
- Bar padded by the bottom inset
- Button clear of the home indicator
- Side padding keeps text away from the notch
How to confirm it's fixed
- Open the page on a notched iPhone or simulator in portrait
- Rotate to landscape and check both sides
- Tap the sticky button near the bottom and confirm it responds
- Check the top header is not under the notch or Dynamic Island
- Test on an older phone without a notch to confirm nothing looks too padded
- Open the page from an in-app browser such as Instagram
How to prevent it happening again
Add safe-area padding to your shared components, not to one page at a time, so new pages inherit it. Include a notched iPhone (or simulator) in portrait and landscape in your release checklist. When you install a new theme, popup or chat tool, check whether it adds viewport-fit=cover or its own fixed bars.
How FunnelGuard handles this
FunnelGuard does not check for content under the iPhone notch or safe area today. It is a possible future check. Layout drawn under device hardware depends on the physical screen shape, which is hard to judge from a robot visit.
What FunnelGuard does do is run your real journeys on a schedule, such as lead forms, checkouts and booking or chat buttons, and check each step, the tracking hits and whether test leads arrive. If a sticky bar breaks a journey outright, that kind of failure can show up as a failed step. A button that is only awkward to tap on one iPhone model will not.
To watch for this yourself, keep a notched iPhone or the Xcode simulator in your release routine, and review your fixed elements each time your theme or plugins change. A free FunnelGuard plan (1 site, 2 journeys, daily checks, no card) can still cover the wider journey while you do the device checks.
Questions people ask
Why is my website content hidden under the iPhone notch?
Usually because the page uses viewport-fit=cover, which lets content fill the whole screen, but the CSS does not add padding for the safe area. Fixed bars and edge-aligned content then slide under the notch, Dynamic Island or home indicator.
What is viewport-fit=cover?
It is a value in the viewport meta tag that tells iOS Safari to draw the page across the full screen, including areas behind the notch and home bar. It enables edge-to-edge design but means you must handle safe areas in CSS yourself.
How do I add padding for the iPhone safe area?
Use the CSS env() function, for example padding-bottom: calc(12px + env(safe-area-inset-bottom));. The insets are safe-area-inset-top, -right, -bottom and -left. Add a plain fallback line before it for older browsers.
Why is my sticky button covered by the iPhone home bar?
A fixed element with bottom: 0 sits at the very bottom of the screen, where the home indicator is drawn. Add bottom padding using env(safe-area-inset-bottom) so the button moves above it.
Do I need viewport-fit=cover?
No. If you do not need backgrounds to reach the screen edges, leave it out and Safari keeps your content inside the safe area automatically. Only use it for deliberate edge-to-edge designs.
How do I test the iPhone safe area without an iPhone?
Use the iOS Simulator in Xcode, which draws the notch and home indicator accurately. Safari's Responsive Design Mode helps with sizes but may not show the insets. A real device is still the most reliable check.
Does FunnelGuard detect content under the iPhone notch?
No. FunnelGuard does not check for this yet, and it is only a possible future check. It does run your real journeys on a schedule and checks steps, tracking and test leads, so a fully broken journey can be caught, but not a notch overlap.
Related issues
- PRF-158Fixed bottom bar covers form submit buttonFix guide
- PRF-159Chat bubble covers the submit or checkout buttonFix guide
- PRF-160Missing viewport meta tag (desktop page shrunk on phones)Fix guide
- PRF-175Layout broken in landscape orientationFix guide
- PRF-157Sticky header takes over 25% of mobile screenFix guide
- PRF-156CTA covered by cookie banner or popupFix guide