In short
Googlebot Smartphone discovers the pages of your site by following the links in the mobile version. If the menu, the breadcrumb, the pagination, the related product blocks or the footer lose links on mobile, those links do not exist for Google. This check means comparing the internal links of both versions, template by template, and restoring the missing ones in the mobile HTML. Once it is done, every link in the desktop version is present in the mobile DOM, visible or collapsible.
Why it matters
Since July 5, 2024, Google crawls and indexes sites with Googlebot Smartphone. It extracts links from the rendered HTML of the mobile version: a link that exists only in the desktop version is no longer read on that page. The target page may still be discovered through other paths, such as the sitemap or other links, but it loses that link as a signal of importance and as a crawl path.
Google's mobile-first best practices call for a mobile version equivalent to the desktop version. They do not go into detail about links, but the consequence is mechanical: fewer links in the mobile HTML means poorer internal linking for the index.
The key point is the difference between hiding and removing:
| Technique | Link in the mobile DOM | Effect for Google |
|---|---|---|
Hidden with CSS (display: none below a breakpoint) |
Yes | Link read |
| Hamburger menu whose list is already in the HTML | Yes | Link read |
| Accordion or tab whose content is in the HTML | Yes | Link read |
| Menu loaded with JavaScript on click or hover | No, until there is an interaction | Link ignored: Googlebot does not click |
| Component not rendered depending on screen size (conditional rendering) | No | Link ignored |
“Show more” button without href instead of pagination |
No | Next pages not discovered through this path |
On the GEO side (Generative Engine Optimization), generative engine crawlers also follow HTML links to find your content. Most of their operators do not document whether these crawlers execute JavaScript: a menu built on click is even more likely to escape them than Googlebot.
What it improves
- Discovery Pages linked only from the desktop navigation become reachable again for Googlebot Smartphone.
- Distribution of internal link equity Strategic pages get their links back from the menu and the templates.
- Depth Fewer clicks from the home page to reach deep pages. See check click depth (opens in a new tab).
- Pagination Page 2 onwards of categories can be crawled again.
- Mobile users They get back the navigation paths the team thought were available.
- Rankings Indirect effect, through crawling and internal linking. Nothing guaranteed page by page.
How to check
1. Count the links in the rendered DOM. Open the page in Chrome, then the developer tools. Switch to device mode (phone icon or Ctrl+Shift+M, Cmd+Shift+M on Mac), reload the page and paste into the console:
const liens = [...new Set([...document.querySelectorAll('a[href]')]
.map((a) => a.href.split('#')[0])
.filter((href) => href.startsWith(location.origin)))].sort();
console.log(liens.length);
copy(liens.join('\n'));
The number of unique internal links is displayed and the list is copied to the clipboard. Paste it into a file, turn off device mode, reload, do it again, then compare the two lists with a diff tool. Do not open the menu by hand before counting: Googlebot does not.
2. Compare at template level. The Playwright script in the “How to implement” section runs the same comparison automatically with Googlebot's user agents.
3. Compare site-wide. Run two crawls with Screaming Frog, with JavaScript rendering enabled, one with the Googlebot Smartphone user agent and the other with Googlebot Desktop. Compare the number of URLs discovered, the crawl depth and the number of inbound links (Inlinks) of strategic pages. Comparison mode (Mode > Compare) highlights the differences, with a paid license and database storage.
4. On Google's side. In Search Console, inspect the URL, run the live test, then “View tested page”: the HTML rendered by Googlebot Smartphone must contain the menu and footer links.
Expected result: the same set of internal links in both versions, apart from intentional duplicates (the same link present twice on desktop, only once on mobile).
How to implement
Before you start
List the link areas of each template and note their state on mobile:
| Template | Area | Desktop links | Mobile links | Cause of the difference | Fix |
|---|---|---|---|---|---|
| Home page | Main menu | 42 | 6 | Submenus loaded with AJAX on hover | Submenus in the HTML, collapsed |
| Category | Pagination | 8 | 0 | “Show more” button without href |
<a href="?page=2"> link |
| Product page | Breadcrumb | 3 | 0 | Removed from the mobile template | Hidden with CSS instead of removed |
| Article | Related articles | 6 | 6 | — | — |
| All | Footer | 24 | 8 | Columns not rendered below 768 px | Accordions in the HTML |
Example values. The fixing rules are the same everywhere:
- Links are in the HTML from the initial load, with no click, hover, scroll or user-triggered network request.
- They are real links:
<a href="/chemin/">, not a<span>or a<button>with anonclickhandler. See make links available in HTML with href (opens in a new tab). - Collapsing is done with CSS: hide below a breakpoint, expand on tap.
- On a site with separate URLs, links on
m.pages point to the equivalentm.pages.
A responsive menu template whose links all stay in the HTML:
<nav class="nav" aria-label="Main navigation">
<button class="nav__toggle" type="button" aria-expanded="false" aria-controls="menu-principal">Menu</button>
<ul id="menu-principal" class="nav__list">
<li>
<details class="nav__group">
<summary>Heating</summary>
<ul>
<li><a href="/chauffage/chaudieres/">Boilers</a></li>
<li><a href="/chauffage/pompes-a-chaleur/">Heat pumps</a></li>
<li><a href="/chauffage/entretien/">Servicing</a></li>
</ul>
</details>
</li>
<li><a href="/plomberie/">Plumbing</a></li>
<li><a href="/contact/">Contact</a></li>
</ul>
</nav>
@media (max-width: 767px) {
.nav__list { display: none; }
.nav__list.is-open { display: block; }
}
@media (min-width: 768px) {
.nav__toggle { display: none; }
}
const bouton = document.querySelector('.nav__toggle');
const liste = document.getElementById('menu-principal');
bouton.addEventListener('click', () => {
const ouvert = bouton.getAttribute('aria-expanded') === 'true';
bouton.setAttribute('aria-expanded', String(!ouvert));
liste.classList.toggle('is-open', !ouvert);
});
For pagination, keep a crawlable link even with a load button:
<a class="charger-plus" href="/chaudieres/?page=2">Show more products</a>
The script can intercept the click to load the next items without changing page; the link stays readable by crawlers. See control pagination and infinite scroll (opens in a new tab).
Rendering comparison script
This Node.js script lists the internal links of the rendered DOM on smartphone and on desktop, with Googlebot's user agents, and shows those missing on one side. Install Playwright (npm i -D playwright && npx playwright install chromium), save the file as parite-liens.mjs, then run node parite-liens.mjs https://example.com/categorie/:
import { chromium } from 'playwright';
const url = process.argv[2];
const profils = {
mobile: {
userAgent: 'Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)',
viewport: { width: 412, height: 915 },
isMobile: true,
hasTouch: true,
},
desktop: {
userAgent: 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Googlebot/2.1; +http://www.google.com/bot.html) Chrome/130.0.0.0 Safari/537.36',
viewport: { width: 1366, height: 900 },
},
};
async function liens(browser, profil) {
const context = await browser.newContext(profil);
const page = await context.newPage();
await page.goto(url, { waitUntil: 'networkidle' });
const resultat = await page.evaluate(() => [...new Set(
[...document.querySelectorAll('a[href]')]
.filter((a) => !/nofollow/i.test(a.rel))
.map((a) => a.href.split('#')[0])
.filter((href) => href.startsWith(location.origin)),
)]);
await context.close();
return new Set(resultat);
}
const browser = await chromium.launch();
const mobile = await liens(browser, profils.mobile);
const desktop = await liens(browser, profils.desktop);
await browser.close();
const absentsMobile = [...desktop].filter((href) => !mobile.has(href));
const absentsDesktop = [...mobile].filter((href) => !desktop.has(href));
console.log(`Followed internal links: mobile ${mobile.size}, desktop ${desktop.size}`);
console.log(`\nMissing from the mobile version (${absentsMobile.length}):\n${absentsMobile.join('\n')}`);
console.log(`\nMissing from the desktop version (${absentsDesktop.length}):\n${absentsDesktop.join('\n')}`);
process.exit(absentsMobile.length === 0 ? 0 : 1);
Links with rel="nofollow" are left out of the count: a link that is followed on desktop and nofollow on mobile therefore shows up as missing from the mobile version, which is intended.
WordPress
Versions WordPress 6.4 to 7.1; Elementor 3 and 4.
- Menus: a theme that offers a “mobile menu” location separate from the main menu must receive the same items, in
Appearance > Menusor in the site editor (Navigation block). The simplest approach is to assign the same menu to both locations. - Page builders: per-device visibility in Elementor and similar builders hides the element with CSS; the links stay in the HTML. A header built in two versions, one per device, must contain the same links in each.
- Mega menus: some plugins load submenus with AJAX. Look in their settings for a lazy-loading option and turn it off, or check with the script that the submenus are in the HTML.
wp_is_mobile(): remove any condition that strips a block of links (breadcrumb, related posts, footer widgets) depending on the device.
Shopify
Versions Online Store 2.0 themes (Dawn, Horizon and derivatives), Shopify admin, November 2026.
In recent themes, the mobile menu drawer reuses the menu chosen in the header settings (Content > Menus for its contents). Check in the theme editor that the header does not use a shorter mobile menu, and that the recommended products or collections blocks are not turned off on mobile. Product recommendations loaded afterwards by JavaScript may not be read: check them with the script.
PrestaShop
Versions PrestaShop 8 and 9 (Classic and Hummingbird themes).
The main menu module (ps_mainmenu) outputs a single menu, collapsed on mobile by the Classic theme as well as by Hummingbird. Check that the footer and category block modules are not disabled for mobile devices, and that category pagination keeps its links. Clear the cache in Advanced Parameters > Performance.
Magento
Versions Magento Open Source and Adobe Commerce 2.4 (2.4.6 to 2.4.9).
Luma's category menu is rendered once and collapsed on mobile. If a user agent design rule applies another theme to smartphones (Content > Design > Configuration), compare the navigation blocks of both themes, or delete the rule.
Drupal
Versions Drupal 10 and 11.
Menu blocks are rendered on the server. Check block visibility in the block layout (/admin/structure/block): no condition must depend on the device. Recent themes collapse the menu with CSS.
Wix
Versions Wix Editor and Wix Studio, November 2026.
Elements hidden in the Wix mobile editor are removed from the mobile page, not just hidden. For each element hidden on mobile that contains links (category strip, footer column), restore it or add its links to the mobile menu. The site menu is the same for both displays.
Squarespace
Versions Squarespace 7.1, November 2026.
Navigation is the same for every device and collapses into a mobile menu. Just check the sections you have hidden on mobile and their links.
Webflow
Versions Webflow Designer, all plans, November 2026.
The Navbar component collapses the same links behind a menu button on small screens. An element hidden at a breakpoint is hidden with CSS (display: none): its links stay in the HTML. Avoid duplicating the navigation in two components, only one of which would be complete.
Laravel
Versions Laravel 10 to 13.
Look for views that remove links depending on the device:
grep -R -n -i -E "isMobile|isDesktop|isTablet" resources/views
Replace each @if($agent->isMobile()) ... @else ... @endif block with a single shared block, adapted with CSS.
Symfony
Versions Symfony 6.4 to 8.1.
Same check in the Twig templates: no navigation, pagination or related links block must depend on device detection. Clear the cache after changes.
Next.js
Versions Next.js 15 and 16 (App Router).
The usual trap is conditional rendering based on screen size:
// Avoid: on mobile, DesktopMenu is never rendered
const isMobile = useMediaQuery('(max-width: 767px)');
return isMobile ? <MobileMenu /> : <DesktopMenu />;
Render a single menu with all the links, generated on the server, and adapt the display with CSS. Use the Link component from next/link, which outputs a real <a href>. A menu whose entries are fetched with fetch in a useEffect must be replaced by a menu rendered in a server component or at build time.
Nuxt
Versions Nuxt 3 and 4.
Avoid v-if driven by screen width or by a device detection module for link blocks; prefer v-show or a media query, which keep the links in the HTML. NuxtLink outputs a real <a href>.
Astro
Versions Astro 5 to 7.
Astro components are rendered on the server, at build time or on demand. An interactive island (client:only) that builds the menu on the client produces no link in the HTML: render the list of links as static HTML and keep JavaScript for opening the menu.
Common mistakes
- Counting links after opening the menu by hand: Googlebot does not click, so the count must be made in the initial state.
- Loading submenus on hover: on mobile there is no hover, and for Googlebot there is no interaction at all.
- Replacing pagination with a button without
hrefon the mobile version only. - Removing the breadcrumb or the footer on mobile to save space, instead of collapsing them.
- Links as
<div onclick>in the mobile drawer: not crawlable. - Links from an
m.site to desktop URLs, which then redirect tom.: each link costs a redirect. - Forgetting secondary templates: the menu often gets fixed, the “related products” and “related articles” blocks rarely do.
Frequently asked questions
Do mobile and desktop need exactly the same links?
The goal is the same set of useful internal links, not a pixel-perfect copy. A link present twice on desktop and once on mobile is no problem at all. However, every page linked from the desktop version must also be linked from the mobile version, since Google crawls with Googlebot Smartphone. Pages that lose all their mobile links are the most exposed.
How do I compare mobile and desktop internal linking across a whole site?
Run two crawls with a crawler such as Screaming Frog, with JavaScript rendering enabled: one with the Googlebot Smartphone user agent, the other with Googlebot Desktop. Compare the number of URLs discovered, the depth and the inbound links of strategic pages. Crawl comparison mode automates the process with a paid license; otherwise, match up the two exports in a spreadsheet.
Resources
- Google Search Central: Mobile-first indexing best practicesdevelopers.google.com
- Google Search Central: Make your links crawlabledevelopers.google.com
- Google Search Central: JavaScript SEO basicsdevelopers.google.com
- Search Console Help: URL Inspection toolsupport.google.com
- Chrome for Developers: Device modedeveloper.chrome.com
- Playwright: Device emulationplaywright.dev
Updated on
Topic checklist (PDF)