What breaks

Anchor links not working on mobile: fixes

A jump link to Pricing does nothing on a phone, or lands with the heading hidden. A simulated phone visitor taps it like a stranger and shows where they ended up.

5 visitors try to .
First test free with an accountRun it from your coding agent

Why are my anchor links not working on mobile?

The likeliest cause is the mobile menu: the link is tapped inside a menu that closes at the same moment and cancels the scroll. Next come a sticky header that covers the top of the target, content above it that loads late and pushes the target down after the jump, and a link whose address does not match the section's id. Check each in that order. A simulated phone visitor taps the link in your menu and shows where the stranger ended up.

What this looks like in a report

Who
Oluwaseun, comparing plans for his team of four
How they arrived
Clicked a search ad for scheduling software on his phone
Where they stopped
Home page, after tapping Pricing in the menu

“I tapped Pricing and the menu closed and the page stayed where it was. I tapped it again, same thing. I could not find the prices myself, so I left to look at another tool.”

The fix. Close the menu after the scroll starts, not at the same moment, or let the link navigate first. Add a top offset equal to the sticky header height so the heading is visible after the jump.

An illustration. Run a test to see your own.See a real sample report

The jump happens before the page finishes moving

An anchor link scrolls to an element by its id. On a phone, three things get in the way. The menu that holds the link closes on tap, and some builders' scripts scroll and close at the same time, so one cancels the other. A sticky header sits over the top of the screen, so the target heading is behind it. Images or embeds above the target load after the jump and push it down, so the visitor lands too high. A mismatch between the link and the id, in spelling or case, does nothing at all.

  • Tap the link from the open mobile menu. Does the page scroll, or does the menu simply close?
  • Check that the link text after the hash matches the section's id exactly, including case.
  • Look at where the heading lands. Is it behind the sticky header?
  • Scroll slowly to the target and watch for images or embeds that load late above it.
  • Open the link from a pasted address with the hash. Does it land correctly with no menu involved?

Menu first, then offset, then late content

Start with the menu, since it is the cause when the link works in the page body and fails in the phone menu. The menu closing can reset the scroll. Delay the close or run the scroll after it. Then the offset: give each target a scroll margin at the top equal to the sticky header height, so the heading is not hidden. Last, late content: reserve the size of images and embeds above the target, so nothing moves after the jump. Each fix is a few lines, and each cause has a different symptom.

Telling the three symptoms apart

If nothing happens and the menu closes, it is the menu. If the page scrolls and the heading is hidden by the header, it is the offset. If it lands too high or too low by a different amount each time, it is late content above the target. If nothing happens at all, from the menu and from a pasted address, the id and the link do not match. Check the spelling, case and spaces, because an id with a space or a typo does not match anything.

The same link can work on a laptop because the menu there does not close on tap, so a laptop check proves little. Test it on a phone, from the open menu, with the page scrolled to the top. Then test it again after scrolling halfway down, because a header that shrinks on scroll changes the offset you need. Write down which of the four symptoms you saw, and fix only that cause before you test again.

Try it the way a stranger does

Do not test the link from the page body only. Start at the top, open the menu, tap the link, and see whether the section appears with its heading visible. A simulated phone visitor with the task of finding the monthly price taps the menu link in a phone-sized touch browser and reports where it stopped, with a screenshot. It is not Safari and not a real device, so the browser-bar behavior and the real scroll feel need your own phone.

What you get with Mimiq

  1. 01

    Run it by hand, or on every pull request

    Paste a link and a task in the app and watch the visitors work. Or run them on every preview deploy: the GitHub Action comments on the pull request, any other CI can call the MCP endpoint, and your coding agent can run it too.

  2. 02

    Bugs and usability problems in one report

    The browser records errors and failed or slow requests on the step they happened. The visitors say where the wording or the steps confused them, and where they left.

  3. 03

    Visitors that behave like your audience

    Each visitor is a different profile with a reason to be there, matched to who the page is for, described by you, or built from your own customers.

  4. 04

    A prompt to fix each problem

    Every problem comes with a fix to paste into Cursor, Claude Code, Lovable or any coding agent, and one prompt hands over the top problems at once. Then send the same visitors through again.

  5. 05

    Follow every visitor

    See each visitor's whole path, step by step with screenshots, and what it was thinking at every step. Ask any visitor a question.

The browser records relevant JavaScript errors and failed or slow app requests encountered during the run, attached to the step where they occurred. The visitors are simulated: they find problems, they do not predict how many real people will convert.

A new header or lazy image can break the jump again

A sticky header that grows, a new announcement bar, or a lazy-loaded image above the target changes where the link lands. Rerun the same phone visitors after each change, on the preview address, and read where they ended up. The same check on each preview deploy catches a broken menu link before release.

Starter

Try it on one launch

$9 once
120 credits, never expire

24 visitors, about 4 tests of 5

  • Visitors on your landing page, signup and checkout
  • Where they left and why, with a fix to copy for each problem
  • Run it in the app or on every pull request
  • Ask any visitor a question, included
  • Test accounts and protected previews
Buy 120 credits

Builder

Test every build

$19 a month
500 credits every month

100 visitors, about 20 tests of 5

  • Everything in Starter
  • Credits refill each month, and what is left rolls over once
  • Cancel anytime
Choose Builder

Pro

Test every release, as a team

$49 a month
1,500 credits every month

300 visitors, about 60 tests of 5

  • Everything in Starter
  • Credits refill each month, and what is left rolls over once
  • Cancel anytime
Choose Pro

Scale

Test at scale, every day

$149 a month
6,000 credits every month

1,200 visitors, about 240 tests of 5

  • Everything in Starter
  • Credits refill each month, and what is left rolls over once
  • Priority support
  • Cancel anytime
Choose Scale
$0for your first test, with a free account (Google or email, no card). It includes 50 credits, enough for 10 visitors. After that a visitor uses 5 credits, and packs start at $9 for 120 credits.
See a sample report

Questions

Why does the link work on desktop but not on my phone?

The mobile menu is the usual difference. On a phone the menu closes on tap and can cancel the scroll, while the desktop menu stays open. Delay the close or run the scroll after it.

Why does the link land with the heading hidden?

A sticky header covers the top of the screen. Give each target a top offset equal to the header height so the heading appears below it. Check the offset on a phone, because the header can be taller there.

Does the id have to match exactly?

Yes. The text after the hash must match the section's id, including case, and the id cannot contain spaces. A typo or a duplicate id makes the link do nothing or jump to the wrong place.

Can a simulated test check my links?

It taps the link in a phone-sized browser and shows where the visitor ended up, with a screenshot. It does not predict how many real visitors use the link, and the exact scroll feel and browser bars need a real phone.

Keep reading

Send visitors and see what breaks first.

Your first test is free: sign in with Google or email and it starts right away. Last checked 2026-12-03.

5 visitors try to .