On this page
What this issue is
A fixed element is something that stays in place on screen while the page scrolls: a sticky header, a bottom call-to-action bar, a chat bubble or a cookie banner. On iPhone, Safari shows and hides its address bar and bottom toolbar as you scroll. That changes the visible area (the viewport) mid-scroll.
When the viewport changes, fixed elements can shake, jump a few pixels, flicker, or briefly leave a gap. The page still works. It just feels unstable.
Why it costs you leads or sales
The direct impact is usually low. Visitors can still read and tap. But a shaking header or bar makes a site feel cheap or broken, and that hurts trust on a form or checkout page. It also makes mis-taps more likely when a button moves just as someone taps it.
- Visitor scrollsSwipes up on an iPhone
- Toolbar resizesSafari hides the address bar
- Fixed bar shakesLayout shifts by a few pixels
- Tap missesButton moves under the thumb
The break happens when the browser toolbars resize during scroll.
How to check if your site has it
This is a visual, device-specific problem. Check it by hand on a real iPhone.
Open the page in Safari
Use a long page with your fixed header, bar or chat button visible. Test on a recent iOS version and, if you can, an older one.
Scroll slowly, then fast
Watch the fixed element as the address bar collapses and comes back. Look for shaking, jumps, flicker or gaps.
Scroll to the very top and bottom
Pull past the edges (rubber-band scrolling). Fixed elements often wobble here.
Test other browsers and modes
Try Chrome on iOS, landscape orientation, and with the keyboard open on a form page.
Use Safari Web Inspector if you have a Mac
Connect the iPhone by cable, enable Web Inspector in Safari's Advanced settings, and inspect the element's computed height and position while scrolling.
How to fix it
The common causes are: 100vh heights that do not match the visible area, scroll-linked JavaScript that moves the element, animations on properties that force re-layout, and fixed elements inside a parent with a transform. Work through the steps below.
Replace 100vh with dynamic units
100vhon iOS equals the tallest viewport, so full-height elements jump when the toolbar changes. Use100dvh, with100vhas a fallback for older browsers.Put the fixed element on its own layer
Add
transform: translateZ(0)(orwill-change: transform) to the fixed element so Safari paints it separately. Use it only on the elements that need it.Remove scroll-event positioning
If JavaScript changes
top,bottomorheightof the element on scroll, replace it withposition: stickyor CSS only. If you must hide on scroll, animatetransform, nottop.Check parents for transform, filter or overflow
A
position: fixedchild inside a parent withtransform,filterorperspectivestops being fixed to the screen. Move the fixed element outside that parent, for example directly underbody.Handle the bottom safe area
Add
padding-bottom: env(safe-area-inset-bottom)to bottom bars and make sure the viewport meta tag includesviewport-fit=coverif you use it.Avoid sticky inside overflow containers
position: stickyfails if an ancestor hasoverflow: hidden,autoorscroll. Useoverflow: clipon the ancestor or remove the overflow rule.
.site-header {
position: fixed;
top: 0;
left: 0;
right: 0;
transform: translateZ(0);
will-change: transform;
}
.bottom-bar {
position: fixed;
left: 0;
right: 0;
bottom: 0;
padding-bottom: env(safe-area-inset-bottom);
transform: translateZ(0);
}
.full-height-section {
min-height: 100vh; /* fallback */
min-height: 100dvh;
}Add the CSS
Go to Appearance > Customize > Additional CSS (or your child theme's stylesheet) and paste the rules, changing the class names to match your theme's header and bar.
Check plugins
Sticky header, popup and chat plugins often add their own scroll JavaScript. Turn off their 'hide on scroll' or 'shrink on scroll' option and retest.
Edit theme CSS
In Online Store > Themes > Edit code, add the rules to your main stylesheet (often base.css or theme.css).
Check theme settings
In the theme editor, look for sticky header options such as 'sticky on scroll up' and try the plain sticky setting.
Set position in the Style panel
Select the element, set Position to Fixed or Sticky, and avoid scroll-based interactions that move it. Use the page's custom code or an embed for the extra CSS.
Replace 100vh
Where a section uses a height of 100vh, set min-height to 100dvh in custom CSS.
Use the built-in pin option
In the editor, select the element and use Pin to screen rather than custom scroll effects. Remove scroll animations on the pinned element.
Add CSS
Go to Website > Website Tools > Custom CSS and paste the rules, using your template's header selector. Check the header's 'sticky' or 'scroll' style options first.
Add custom CSS
In the funnel or website builder, open Settings > Custom Code (or the page's custom CSS) and add the rules. Remove scroll animations on the sticky row or section.
Edit your stylesheet
Apply the CSS above and delete any scroll listener that sets top, bottom or height. Prefer position: sticky where the layout allows.
Jittery
- Header moved by a scroll listener
- Hero uses height: 100vh
- Bar sits inside a transformed parent
Stable
- Header uses position: fixed or sticky in CSS
- Hero uses min-height: 100dvh
- Bar sits directly under body with safe-area padding
How to confirm it's fixed
- Scroll slowly and quickly: the header and bar stay still
- No gap appears when the address bar hides or returns
- Rubber-band scrolling at top and bottom looks calm
- Bottom bar clears the home indicator
- Works in Safari and Chrome on iOS
- Works in portrait and landscape
- Form fields and the keyboard do not push the bar out of place
How to prevent it happening again
Add a real iPhone to your release checks for any change to headers, popups, chat widgets or sticky bars. Keep fixed elements simple and CSS-driven. Review new plugins or scripts that add scroll effects before they go live.
| Cause | Symptom | Fix |
|---|---|---|
| height: 100vh | Section or bar jumps as toolbar changes | Use 100dvh with a 100vh fallback |
| Scroll listener sets top/bottom | Element lags or shakes | Use CSS sticky or animate transform |
| Transformed parent | Fixed element scrolls with the page | Move it outside the parent |
| Overflow on ancestor | Sticky does nothing | Remove overflow or use overflow: clip |
| No safe-area padding | Bar overlaps home indicator | Add env(safe-area-inset-bottom) |
How FunnelGuard handles this
This is outside what FunnelGuard checks. Jitter is a visual, real-device effect that depends on how Safari draws the page while a person scrolls, and FunnelGuard does not measure that. A tool that fits is real-device testing or visual QA: a cloud service that runs your pages on physical iPhones, or a manual check on your own phone.
What FunnelGuard does cover is the funnel itself: a robot visitor runs your lead forms, checkouts and booking or chat buttons on a schedule and checks each step, tracking hits and test leads. A free plan is available, and a free read-only website audit too.
Frequently asked questions
Questions people ask
Why does my sticky header jump when I scroll on iPhone?
Safari hides and shows its address bar as you scroll, which changes the viewport height. If your header or layout relies on 100vh, scroll JavaScript or a transformed parent, it can shift by a few pixels. Use CSS positioning, 100dvh and a separate compositing layer to steady it.
How do I fix position fixed not working on iOS Safari?
Check that no parent has transform, filter or perspective, because that makes the fixed element relative to the parent instead of the screen. Move the element directly under body. Also remove scroll scripts that change its position.
What is the difference between 100vh and 100dvh on iPhone?
100vh uses the largest possible viewport, as if the toolbars were hidden, so content can be taller than the visible area. 100dvh updates as the toolbars show and hide, so it matches what the visitor sees. Use 100dvh with a 100vh fallback.
Why is position sticky not working on iOS?
The most common cause is an ancestor with overflow set to hidden, auto or scroll, which blocks sticky. Another is a missing top value. Remove the overflow rule, use overflow: clip, and set top: 0.
Does translateZ(0) fix fixed element flicker in Safari?
Often yes. It promotes the element to its own layer so Safari repaints it less during scroll. Use it only on the few elements that flicker, since too many layers can use extra memory.
How do I test iOS scroll jitter without an iPhone?
Desktop emulators do not copy Safari's toolbar behaviour, so they can miss it. The most reliable option is a real iPhone or a cloud service with real devices. Xcode's iOS Simulator on a Mac is a closer option than browser dev tools.
Can a jittering fixed bar hurt conversions?
It can, though usually modestly. A moving button can cause missed taps and make the page feel untrustworthy on forms and checkouts. Fixing it is a low-cost polish step.
Related issues
- PRF-157Sticky header takes over 25% of mobile screenFix guide
- PRF-158Fixed bottom bar covers form submit buttonFix guide
- PRF-159Chat bubble covers the submit or checkout buttonFix guide
- PRF-156CTA covered by cookie banner or popupFix guide
- PRF-160Missing viewport meta tag (desktop page shrunk on phones)Fix guide
- PRF-169Mobile menu cannot be closed or scrolls page behindFix guide