How to Make a Website Mobile Friendly: 2026 Checklist

By the bootstrap.build team · 13 min read · Published

To make a website mobile friendly, add the viewport meta tag, build fluid layouts with flexbox or grid, write mobile-first media queries, size images with srcset and max-width: 100%, keep text readable and tap targets large, and then test in Chrome DevTools, Lighthouse, and on a real phone. This checklist is for designers and developers fixing an existing site or starting a new one, with copy-paste code for every step. Every technical fact and price below was checked against official documentation in November 2026.

How to make a website mobile friendly: a 10-step checklist with code and testing tools

TL;DR

  • Start with one line: <meta name="viewport" content="width=device-width, initial-scale=1">. Without it, phones render the page at a desktop width and shrink it.
  • Design for the small screen first, then add min-width media queries as the layout needs room. This is how responsive web design and frameworks like Bootstrap work.
  • Images, text, and taps: cap images at max-width: 100%, serve smaller files with srcset, keep body text near the 16px browser default, and make tap targets about 48px.
  • Test with Lighthouse, not the old Mobile-Friendly Test. Google retired the Mobile-Friendly Test tool and the Search Console Mobile Usability report on December 1, 2023, and points to Lighthouse instead.
  • Google indexes your mobile version. Its move to mobile-first indexing was declared complete on October 31, 2023, so the content on your phone layout is the content that counts.

Google uses the mobile version of a page’s content for indexing and ranking. On October 31, 2023, Google Search Central announced that the move to mobile-first indexing was complete and that all sites that work on mobile devices are now primarily crawled with the mobile crawler. A small set of sites that do not work on mobile at all are still crawled with the legacy desktop Googlebot for now.

Google’s current guidance on mobile-first indexing says three things that shape every decision below:

  • Google recommends responsive web design, calling it the easiest pattern to implement and maintain: same HTML, same URL, layout adjusted by screen size.
  • Keep the same content on mobile and desktop. Tabs and accordions are fine on small screens, as long as the content is equivalent.
  • Match metadata and structured data. The title, meta description, and structured data should be the same on both versions, and primary content should not be lazy-loaded behind a swipe, click, or tap.

Mobile usability is also part of Google’s page experience guidance, alongside Core Web Vitals, which its ranking systems use. If you are still deciding how to build the site at all, the explainer on static vs dynamic websites covers the architecture side; everything in this checklist applies to both.

The mobile friendly checklist, step by step

1. Add the viewport meta tag

This is the single most important line. Without it, mobile browsers render the page at a virtual desktop width (MDN gives 980px as an example) and scale it down, so your narrow-screen media queries never apply.

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
</head>

This is the exact tag web.dev recommends. Do not add user-scalable=no or a low maximum-scale: MDN warns that disabling zoom prevents people with low vision from reading the page, and notes that WCAG requires at least 2x zoom.

2. Use fluid layouts with flexbox and grid

Fixed pixel widths (width: 960px) are the most common cause of a page that does not fit a phone. MDN notes that flexbox and CSS grid are responsive by default: they distribute available space instead of assuming a screen size.

A card grid that reflows from one column to several, with no media query at all:

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}

A header row that wraps instead of overflowing:

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

Use max-width instead of width on containers, so they shrink on small screens but stop growing on large ones:

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

3. Write media queries mobile first

Mobile first means your base CSS is the single-column phone layout, and media queries only add rules as the screen gets wider. web.dev’s advice is to design for a small screen first, then widen the viewport until a breakpoint becomes necessary, and to choose breakpoints based on your content, not on specific devices or brands.

/* Base: phones. One column, comfortable spacing. */
.layout {
  display: grid;
  gap: 1.5rem;
}

/* From 48rem (768px at the default font size): sidebar appears. */
@media (min-width: 48rem) {
  .layout {
    grid-template-columns: 1fr 2fr;
  }
}

/* From 64rem (1024px): wider content column. */
@media (min-width: 64rem) {
  .layout {
    grid-template-columns: 1fr 3fr;
  }
}

Modern browsers also accept the range syntax MDN uses in its examples, @media (width >= 48rem), which means the same thing. The mobile-first order matters because phones then download and apply the fewest overrides.

4. Make images responsive

Two rules fix most image problems. First, never let media overflow its container:

img,
picture,
video {
  max-width: 100%;
  height: auto;
}

Second, do not send a 2,000px photo to a 390px screen. With srcset and sizes, the browser picks the smallest file that fits the slot it will display:

<img
  src="hero-800.jpg"
  srcset="hero-480.jpg 480w, hero-800.jpg 800w, hero-1600.jpg 1600w"
  sizes="(max-width: 600px) 100vw, 800px"
  width="800" height="500"
  alt="Product screenshot on a phone and a laptop">

MDN explains the order of operations: the browser finds the first media condition in sizes that is true, takes that slot width, and loads the matching (or next larger) file from srcset. In MDN’s own example, a narrow screen loads a 63KB image instead of the 128KB version. If you need a different crop on phones (a tight portrait instead of a wide banner), use the <picture> element with <source media="..."> for art direction.

The width and height attributes are not optional decoration: web.dev recommends them on every <img> so the browser reserves space before the file arrives and the layout does not jump.

5. Keep text readable

Body text that looks fine on a 27-inch monitor can be unreadable on a phone. The browser default font size is usually 16px, according to MDN, so do not shrink below it for body copy. Set sizes in rem so they respect the user’s own browser setting:

html {
  font-size: 100%; /* respects the user's browser setting, usually 16px */
}

body {
  font-size: 1rem;
  line-height: 1.6;
}

h1 {
  font-size: clamp(1.75rem, 5vw + 1rem, 3rem);
}

clamp() lets headings scale with the viewport while staying between a minimum and a maximum, so a desktop-sized headline does not wrap into six lines on a phone. Keep line length in check with max-width: 65ch on text blocks.

6. Make tap targets big enough

Fingers are less precise than a mouse pointer. web.dev recommends a minimum touch target of about 48 by 48 device-independent pixels (roughly 9mm, the size of a fingertip pad), spaced about 8px apart horizontally and vertically. A small icon can stay small visually; padding grows the tappable area:

.icon-button,
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0.75rem;
}

.nav {
  display: flex;
  gap: 0.5rem; /* 8px between targets */
}

This matters most for menus, footers with many small links, and inline links in dense paragraphs.

7. Eliminate horizontal scrolling

web.dev puts it plainly: forcing users to scroll horizontally or zoom out to see the whole page is a poor experience. To find the culprit, open DevTools at a 360px width and look for anything wider than the screen. Common causes and fixes:

  • Fixed widths on containers, tables, or iframes: switch to max-width: 100%.
  • Wide tables: wrap them so only the table scrolls, not the page.
  • Long words and URLs: allow them to break.
  • Embeds (maps, video): give them a fluid wrapper with aspect-ratio.
.table-wrap {
  overflow-x: auto;
}

p,
li {
  overflow-wrap: break-word;
}

.embed {
  width: 100%;
  aspect-ratio: 16 / 9;
}

A quick debugging trick: temporarily add * { outline: 1px solid red; } and scroll sideways; the element sticking out is your problem. Avoid hiding the symptom with overflow-x: hidden on body before you know the cause.

8. Build a mobile navigation that works

A desktop menu with eight links will not fit a phone. The usual pattern is a button that shows and hides the menu on small screens, while the full menu stays visible on wider screens. MDN’s guidance for a toggle button is to set aria-controls to the menu’s id and keep aria-expanded in sync with whether the menu is open, so screen readers announce the state.

<nav class="site-nav">
  <button class="menu-toggle" aria-expanded="false" aria-controls="main-menu">
    Menu
  </button>
  <ul id="main-menu" class="menu">
    <li><a href="/">Home</a></li>
    <li><a href="/work/">Work</a></li>
    <li><a href="/contact/">Contact</a></li>
  </ul>
</nav>
.menu { display: none; }
.menu.is-open { display: block; }

@media (min-width: 48rem) {
  .menu-toggle { display: none; }
  .menu { display: flex; gap: 0.5rem; }
}
const toggle = document.querySelector('.menu-toggle');
const menu = document.getElementById('main-menu');

toggle.addEventListener('click', () => {
  const open = toggle.getAttribute('aria-expanded') === 'true';
  toggle.setAttribute('aria-expanded', String(!open));
  menu.classList.toggle('is-open', !open);
});

Keep the visible label (“Menu”) or add an accessible name if you use an icon only. For a single-page site, a short anchor menu often removes the need for a toggle entirely; the guide to building a one-page website covers that layout.

9. Use the right input types in forms

Typing on a phone keyboard is slow, so let the device help. MDN documents that type="email" and type="url" bring up a relevant keyboard on devices with dynamic keyboards, type="tel" shows a telephone keypad, and type="number" shows a numeric keypad on some devices. The inputmode attribute requests a keyboard layout without changing validation, and autocomplete lets the browser fill known values.

<form>
  <label for="email">Email</label>
  <input id="email" name="email" type="email" autocomplete="email" required>

  <label for="phone">Phone</label>
  <input id="phone" name="phone" type="tel" autocomplete="tel">

  <label for="zip">ZIP code</label>
  <input id="zip" name="zip" type="text" inputmode="numeric" autocomplete="postal-code">

  <button type="submit">Send</button>
</form>

Stack labels above fields on small screens, make inputs full width, and give the submit button the same 48px minimum height as other tap targets.

10. Make it fast on mobile networks

Phones have slower CPUs and often slower connections than the laptop you build on. Google’s Core Web Vitals give concrete targets, measured at the 75th percentile of page loads and segmented by mobile and desktop (web.dev):

Metric What it measures Good
Largest Contentful Paint (LCP) Loading 2.5 seconds or less
Interaction to Next Paint (INP) Responsiveness 200 milliseconds or less
Cumulative Layout Shift (CLS) Visual stability 0.1 or less

The highest-impact fixes for most small sites:

  • Lazy-load below-the-fold images with loading="lazy", but web.dev warns not to lazy-load images that are visible on first load, especially the LCP image.
  • Serve right-sized images with srcset (step 4) and set width and height to protect CLS.
  • Cut third-party scripts. Chat widgets, trackers, and embeds add weight a phone pays for on every visit.
  • Host on a CDN. A static site served from edge locations near visitors removes server rendering time from the equation; the static website hosting comparison lists providers.
<img src="team.jpg" width="1200" height="800" loading="lazy" alt="The studio team">

Bootstrap’s grid: responsive layouts without writing media queries

If you use Bootstrap, most of steps 2 and 3 are handled by its grid. The current stable release line is Bootstrap 5.3 (the docs show v5.3.9), and its grid is a mobile-first, flexbox-based, 12-column system with six responsive tiers.

Bootstrap 5.3 breakpoints documentation, November 2026

Breakpoint Class infix Applies from
Extra small none under 576px
Small sm 576px
Medium md 768px
Large lg 992px
Extra large xl 1200px
Extra extra large xxl 1400px

Because the breakpoints use min-width, a class applies at its tier and every tier above it. This layout stacks on phones, shows two columns from 768px, and three from 992px:

<div class="container">
  <div class="row g-4">
    <div class="col-12 col-md-6 col-lg-4">Card one</div>
    <div class="col-12 col-md-6 col-lg-4">Card two</div>
    <div class="col-12 col-md-6 col-lg-4">Card three</div>
  </div>
</div>

Remember that Bootstrap’s starter template already includes the viewport meta tag; if you build your own <head>, keep it.

A note on what is coming: getbootstrap.com now leads with Bootstrap 6, currently v6.0.0-alpha.2. In the v6 alpha docs, the grid uses a prefix syntax (sm:col-8 instead of col-sm-8) and the larger breakpoints change to 1024px (lg), 1280px (xl), and 1536px (2xl). Since it is an alpha, production sites should stay on 5.3 for now.

How to test a mobile friendly website

Chrome DevTools device mode

Open DevTools and click Toggle device toolbar to load the page in a mobile viewport. You can pick a preset device or drag the width, and throttle the network and CPU: the “Mid-tier mobile” preset simulates fast 3G with a CPU 4 times slower than normal, and “Low-end mobile” simulates slow 3G with a CPU 6 times slower. Drag the viewport slowly from 320px upward and watch for overflow, cramped text, or a layout that breaks between your breakpoints.

Chrome’s own docs call device mode a “first-order approximation.” It runs on your computer’s CPU, not a phone’s, so treat it as a fast first check.

Lighthouse

Lighthouse is Google’s open-source auditing tool, and it is what Google points to now that the Mobile-Friendly Test is gone. Run it from the Lighthouse panel in Chrome DevTools, from the command line, as a Node module in CI, or by entering a URL at PageSpeed Insights. It audits performance, accessibility, SEO, and more. In Lighthouse 13 the viewport check moved into an “Optimize viewport for mobile” insight; it still fails a page with no viewport meta tag or with initial-scale below 1.

For field data from real visitors, use the Core Web Vitals report in Google Search Console, which Google lists alongside Lighthouse in its page experience documentation.

Real devices

Nothing replaces holding a phone. Test on at least one iPhone and one Android device, in portrait and landscape, with your thumb rather than a mouse. Check that menus open, forms bring up the right keyboard, nothing scrolls sideways, and text is readable without zooming. Chrome’s docs recommend remote debugging when you need DevTools on a real Android device.

What happened to Google’s Mobile-Friendly Test?

Google retired the Mobile-Friendly Test tool, the Mobile-Friendly Test API, and Search Console’s Mobile Usability report on December 1, 2023. Google’s April 2023 announcement stated that this “doesn’t mean that mobile usability isn’t important” and named Lighthouse from Chrome as an alternative. Old links to the tool now lead to Lighthouse documentation, so any “mobile friendly test” today means running Lighthouse or PageSpeed Insights and checking the page yourself on a device.

Using a builder instead

Hand-coding every breakpoint is not the only route. If you design visually, or you already have finished HTML and just need it online, these two options cover each case. The roundup of website builders for designers compares more tools.

Siter.io homepage, November 2026

Siter.io: design each breakpoint visually. Siter.io is a visual website editor where desktop, tablet, and mobile are separate layouts of the same page. Each element keeps its own position, size, and style per screen, anything you add on desktop gets a place on tablet and mobile automatically, and you can add custom widths (for example 1440px). The breakpoints shown in its editor demo are 1200px desktop, 640px tablet, and 375px mobile, and its 143 templates each ship with desktop, tablet, and phone layouts. A Figma plugin imports frames on every plan. Regular pricing: Solo $8/month month to month ($7/month billed yearly) with 1 website and 10 pages; Plus $14/month ($12 yearly) with 3 websites and 50 pages; Pro $28/month ($24 yearly) with 5 websites, unlimited pages, and HTML download. Every plan starts with a 3-day trial that requires a card; there is no free plan. Because layouts are set per screen rather than generated from one fluid layout, you check each breakpoint yourself, which is the trade-off for full visual control.

Static.app homepage, November 2026

Static.app: host the responsive HTML site you built. Once your site passes the checklist above, Static.app puts it online: drag a ZIP of your files into the browser, or publish from the Mac desktop app, the API, or an MCP connector. The Starter plan is $6/month month to month or $60 billed yearly, with 2 websites, 500 MB of storage, custom domains with SSL, forms, website analytics, and unlimited traffic. Medium is $12/month ($120/year) for 7 websites and 3 GB; Large is $18/month ($180/year) for 30 websites and 10 GB. A 7-day free trial (1 website, 50 MB, no credit card) lets you test it, but there is no permanent free plan, and it hosts static files only, so it will not run server-side code. For the full process of going live, including domains, see how to publish a website.

Quick checklist

Step What to check Pass when
Viewport Meta tag in <head> width=device-width, initial-scale=1, zoom not disabled
Layout Flexbox or grid, max-width containers No fixed pixel widths on wrappers
Media queries Mobile-first min-width Base CSS is the phone layout
Images max-width: 100%, srcset, width/height No overflow, no oversized downloads
Text Body near 16px, rem units Readable without zooming
Tap targets About 48x48px, 8px apart No accidental taps
Horizontal scroll Test at 320px to 360px wide No sideways scrolling
Navigation Toggle with aria-expanded Menu opens and closes on a phone
Forms type, inputmode, autocomplete Right keyboard appears
Performance Core Web Vitals LCP 2.5s, INP 200ms, CLS 0.1 or better

FAQ

How do I check if my website is mobile friendly?

Run Lighthouse from Chrome DevTools or PageSpeed Insights, then open the page in DevTools device mode and drag the width from 320px upward. Finish on a real phone: check for sideways scrolling, readable text, working menus, and the right keyboards in forms. Search Console’s Core Web Vitals report adds data from real visitors.

Is Google’s Mobile-Friendly Test still available?

No. Google retired the Mobile-Friendly Test tool, its API, and the Search Console Mobile Usability report on December 1, 2023. Google named Lighthouse as an alternative and says mobile usability remains part of its page experience guidance.

What is the difference between a mobile friendly and a responsive website?

Responsive web design is one way to be mobile friendly: the same HTML at the same URL, with CSS adapting the layout to the screen. A site could also be mobile friendly with a separate mobile site, but Google recommends responsive design because it is the easiest pattern to implement and maintain.

What are the best breakpoints for responsive web design?

Choose breakpoints where your content breaks, not by device; web.dev advises against device-based breakpoints. If you want a starting point, Bootstrap 5.3 uses 576px, 768px, 992px, 1200px, and 1400px with min-width queries.

Does mobile friendliness affect SEO?

Yes. Google indexes and ranks the mobile version of your content under mobile-first indexing, so anything missing on mobile is missing for Google. Mobile usability is part of Google’s page experience guidance, and Core Web Vitals, which are measured separately for mobile, are used by its ranking systems.

Build your Bootstrap theme

Design a custom Bootstrap 5 theme visually with a live preview, then export clean Sass or CSS.

Open the Builder