Guides mobile-first indexing optimization and mobile usability. Google uses the mobile version of pages for indexing and ranking; mobile-friendliness is a ranking factor.
When invoking: On first use, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.
Check for project context first: If .claude/project-context.md or .cursor/project-context.md exists, read it for site URL.
Identify:
RequirementActionContent parityMobile version must include same primary content as desktop; avoid hiding key content on mobileStructured dataSame schema on mobile and desktop; ensure mobile URLs in schemaMetadataSame title, meta description on mobileMediaImages should be crawlable; avoid lazy-loading above-fold images
Responsive design = Single HTML; CSS media queries adapt layout to screen size. Preferred for SEO: one URL, no duplicate content.
PrinciplePracticeMobile-firstDesign for mobile first; enhance for desktopFluid layoutUse %, vw, flex, grid; avoid fixed pixel widthsBreakpointsCommon: 320px, 768px, 1024px, 1280px; match device widthsImagesResponsive images ( srcset, sizes); see image-optimization
The viewport meta tag tells browsers how to scale and size the page on mobile. Required for mobile-friendly pages.
html
<meta name="viewport" content="width=device-width, initial-scale=1">
AttributePurposewidth=device-widthMatch viewport to device screen widthinitial-scale=11:1 scale on load; prevents zoommaximum-scaleAvoid disabling zoom (accessibility)user-scalable=noAvoid—hurts accessibility
Without viewport: Desktop layout shrunk; horizontal scroll; fails Mobile-Friendly Test. See page-metadata.
ElementGuidelineViewportSee above; required for mobile-friendlyFont size16px minimum for body text; avoid zooming to readTouch targetsButtons/links ≥48×48px; adequate spacing between tapsContent widthNo horizontal scrolling; content fits viewportIntrusive interstitialsAvoid popups that block main content on mobile
IssueFixContent hidden on mobileShow critical content; avoid accordion/tabs for primary contentFlash / unsupportedReplace with HTML5 alternativesText too smallUse base font ≥16px; avoid font-size in px <12Links too closeIncrease tap target size; add padding
ApproachWhenNoteResponsivePreferredSingle URL; same HTML, CSS media queriesDynamic servingSame URL, different HTML by user-agentEnsure mobile content paritySeparate URLsm.example.comUse canonical + hreflang; see canonical-tag, page-metadata
AMP is a web component framework for fast-loading pages. Status (2024–2025): Still supported; no longer required for Top Stories or ranking.
AspectNoteRankingNo ranking advantage over well-optimized responsive pagesTop StoriesAMP no longer required since 2021; Core Web Vitals sufficeWhen to considerNews sites, ad-heavy pages, very slow hosting—but responsive + CWV usually betterAlternativeResponsive design + core-web-vitals optimization; SSR/SSG; see rendering-strategies
Recommendation: For most sites, prioritize responsive design and Core Web Vitals over AMP. AMP adds maintenance (separate AMP HTML); modern optimization offers similar performance with more flexibility.