Mobile-Friendly Website

A mobile-friendly website works properly on a phone. The text is readable without zooming, buttons are easy to tap, and nothing runs off the side of the screen. Most sites manage this with responsive design, where one set of pages changes its layout to suit the screen it's on.

How a mobile-friendly website changes on a phone

Take a builder's website with a menu across the top, three project photos in a row, and an enquiry form. On a desktop, everything fits side by side. On a phone, the menu folds into a single button, the three photos stack into one column, and the form's fields stretch across the full width.

Nothing has to be scrolled sideways, and every part of the page is still there. It's the same page, just laid out for a narrow screen.

What makes a website easy to use on a phone

Readable text comes first, so body copy needs to be large enough to read without zooming. Buttons and links need enough space around them to tap with a thumb. Forms work better when each field brings up the right keyboard, such as a number pad for a phone number.

Pop-ups that cover the page are frustrating on a small screen, and Google can treat intrusive ones as a poor experience. Fixed bars that take up a lot of the screen can get in the way too.

Testing a mobile-friendly website

Shrinking a desktop browser window gives you a rough idea, but it isn't the same as using a phone. Try the main tasks on real devices, like finding a service, filling in the form, and tapping the phone number.

Lighthouse, in Chrome's developer tools, checks things like tap targets, font sizes, and the viewport tag. Google retired its separate Mobile-Friendly Test at the end of 2023, so Lighthouse and Search Console are where most people look now.

Mobile-friendly tables and tabs on our own site

Two rules in our own stylesheets stop wide parts of a page from running off the side of a phone.

  1. Our comparison tables
    /* Phones: a comparison table reads as one card per row, each cell under its column's name, instead of a table wider than the screen with its last column out of sight. */@media (max-width: 760px) { .compare-stack tbody tr {… .compare-stack td::before { content: attr(data-label);
    One card for each row of a table

    On a phone, each row of our comparison tables becomes its own card, and every cell shows its column's name above it. That avoids a table wider than the screen, where the last column ends up out of sight.

  2. Our tab options
    [role="tablist"].tab-strip.is-brick { display: flex !important; flex-flow: row wrap !important; justify-content: flex-start !important;
    Tabs that wrap onto more rows

    When a row of tab options won't fit across a phone, the options wrap onto more rows, each at its own width. Every option shows at once, and nothing needs scrolling sideways.

More web design glossary terms

These web design and development glossary terms cover how websites are built, hosted, secured and used on every screen. Each definition shows the idea in a diagram with a practical example, so briefs, quotes and conversations with your web team are easier to follow.