Sticky header too big on mobile: how to check it and fix it
A sticky header is too big when it stays fixed at the top of a phone and leaves little room for the page itself. The fix is to make it smaller, keep fewer things stuck to the top, or turn off the sticky behavior on mobile.
A sticky header is the bar at the top of your site that stays in place while visitors scroll. On a desktop monitor that is handy. On a phone it can cover a big share of a small screen, so people see a thin slice of your content under a thick slab of logo, menu and banners. This page shows how to spot the problem, shrink it, and stop it coming back.
What the problem looks like
A visitor opens your page on their phone and starts scrolling. The logo, the menu bar, an announcement strip and sometimes a cookie notice all stay pinned to the top. Held upright, the phone may show only a few lines of content. Turned sideways, the screen is even shorter, and the header can take up half of it or more.
Other signs are easy to miss:
- Clicking a link to a section on the same page lands with the heading hidden behind the header.
- A form field is covered by the header when the on-screen keyboard opens.
- Keyboard or screen reader users tab to a link or button that is hidden under the bar.
- Several things are stuck on top at once, such as a promo bar, a menu and a chat bubble.
Why it matters
Most of the cost is in sales and trust. If a visitor cannot see the product, the price or the button because the header is in the way, they leave or they feel the site is clumsy. Small phones, large text settings and landscape mode make it worse.
There is also an accessibility side. WCAG 2.2 includes a criterion called Focus Not Obscured, which says the item a keyboard user has selected should not be completely hidden by content such as a sticky header. Google does not publish a simple rule that a tall header is penalized, but if people leave because they cannot read the page, your enquiries and orders suffer anyway.
How to check your site for free
- Open your site on a real phone. Scroll slowly through a few pages: the home page, a product or service page and a long article. Ask yourself how much of the screen is actual content.
- Turn the phone sideways and scroll again.
- On a computer using Chrome, right-click the page and choose Inspect, then click the device toolbar icon (or press
Ctrl+Shift+M, orCmd+Shift+Mon a Mac). Pick a phone size from the list and use the rotate button. - In the same tool, click the header in the page to select it. The panel shows its height in pixels.
- Click any link that jumps to a section of the same page and see whether the heading is still visible.
- Open the site in a private window so you see what a new visitor sees, including any cookie banner.
A common rule of thumb is to keep a mobile header around 56 to 64 pixels tall, with only one thing stuck at the top. That is a guideline, not a hard rule. If the header plus banners covers more than roughly a fifth of the screen, it is worth reducing.
How to fix it in general
Work through these in order and stop when the page feels comfortable.
- Make the header smaller. Reduce the logo height and the padding above and below it, and use one row instead of two.
- Unstick the extras. Announcement bars, secondary menus and search bars rarely need to follow the visitor down the page.
- Hide on scroll down, show on scroll up. Many themes offer this. The header gets out of the way while reading and returns when someone scrolls back.
- Turn off sticky on mobile only. Keep it on desktop if you like it there.
If your theme has no setting for this, a developer can add a few lines of CSS. The class names below are examples, because every theme names its header differently:
@media (max-width: 768px) {
.site-header { position: static; }
.site-header .logo img { max-height: 40px; }
}
html { scroll-padding-top: 70px; }
The first block makes the header scroll away on phones and shrinks the logo. The last line (scroll-padding-top) tells the browser to leave space above section jump targets, so headings are not hidden if you keep a sticky header. Set it to about the height of your header.
Common platforms
Menu names change between versions and themes, so treat this as a map of where to look.
| Platform | Where to look |
|---|---|
| WordPress | Appearance > Customize > Header, or the Site Editor for block themes. Look for sticky, fixed or smart header options. |
| Shopify | Online Store > Themes > Customize, then the header section. Many themes have a sticky header setting. |
| Wix | Select the header in the editor and look for a Pin to screen option. Check the mobile view separately. |
| Squarespace | Site styles or header settings, look for a fixed header toggle. Depends on your version. |
| Webflow | Select the navbar and check its position (sticky or fixed) at each breakpoint. |
| Elementor | Header section, Advanced > Motion Effects > Sticky (sticky effects need Elementor Pro, and menu names can vary by version). Choose which devices it applies to. |
| WooCommerce | The header comes from your WordPress theme. Also check sticky add-to-cart bars from your theme. |
We have step-by-step guides for WordPress and Shopify, with the others available from the same series.
How to confirm the fix worked
- Repeat the phone checks above, upright and sideways, on at least two screen sizes if you can.
- Click several in-page links and confirm headings are visible.
- Open a form, tap a field, and check the keyboard does not leave the field behind the header.
- Look in a private window with the cookie banner showing.
- Tab through the page with a keyboard and check nothing selected is covered.
If you are a SiteMonday subscriber, the week 5 mobile usability test checks this on its Monday, and the ranked fix list in the report shows where it sits among your other mobile issues. You or your developer still make the change.
How to stop it coming back
- Treat the top of the page as shared space. Before adding an announcement bar, chat widget or cookie tool, check what is already stuck there.
- Re-test on a phone after theme updates, new plugins or apps, and any redesign. Updates sometimes reset header settings.
- Keep one sticky element on mobile, and make it a short one.
- Put anything stuck to the screen on your review list, including popups. If one is hard to dismiss, see popup cannot close on mobile.
- Ask your developer to include a phone check in their sign-off for any change to the header.
Step by step for your platform
- Sticky header covering too much of the phone screen on WordPress
- Sticky header covering too much of the phone screen on Shopify
- Sticky header covering too much of the phone screen on Wix
- Sticky header covering too much of the phone screen on Squarespace
- Sticky header covering too much of the phone screen on Webflow
- Sticky header covering too much of the phone screen on Elementor
- Sticky header covering too much of the phone screen on WooCommerce
Questions
Should I remove the sticky header completely?
Not necessarily. A slim, single-row sticky header can help people navigate. If it is hard to shrink, turning it off on phones while keeping it on desktop is a sensible compromise.
How tall should a mobile header be?
A common guideline is roughly 56 to 64 pixels, but it is a rule of thumb, not an official limit. What matters is that visitors can comfortably see your content, including in landscape mode.
Why do my section links hide the heading?
The sticky header sits on top of the spot the browser scrolls to. Adding `scroll-padding-top` to the page, set to about the header height, usually fixes it.
Does a big sticky header hurt my Google ranking?
Google does not state that a tall header is penalized on its own. The harm comes indirectly, when visitors cannot use the page and leave, which costs you enquiries and sales.
Can I fix this without a developer?
Often yes. Many themes and site builders have a sticky header setting, a logo size option or a mobile toggle. CSS changes are better left to someone comfortable editing theme files.
Why does the header look fine on my computer but not my phone?
Your computer screen is usually larger, so the same header often takes a smaller share of it. Phones also have extra things stuck on top, such as banners, that stack on the header.