Fixed-price website design from £2,400View Prices

Mobile-First Design: What It Means and How to Do It

Why starting with the smallest screen leads to a clearer website on every device, and how the approach works in design and in code.

Layout and Structure guide. 6 minute read. Updated .

In short

  • Mobile-first design means designing the phone version of a page first, then adding to it as the screen gets wider.
  • A small screen forces decisions about what matters most, and those decisions improve the desktop version too.
  • In CSS it means the base styles are for small screens and min-width media queries add layout for larger ones.
  • Google indexes the mobile version of a site, so the phone layout is the one that search results are based on.
  • Mobile first does not mean mobile only. Wide screens still deserve a layout that uses the space well.

The usual way to design a website used to be to draw the desktop page first and then work out how to squeeze it onto a phone. Mobile-first design reverses the order. You start with the smallest screen, where there is room for one column and very little else, and you add columns, images and detail as the space grows.

The idea was set out by the designer Luke Wroblewski in 2009 and has since become the default way to build a responsive website. It is as much a way of thinking as a technique, and it tends to produce simpler, faster websites on every device.

What Mobile-First Design Means

On a phone there is one column. Everything on the page has to go in a single order, from top to bottom, and anything that is not essential is in the way. Designing that version first means deciding, before anything else, what the page is for and what a visitor needs to see first.

The wider layouts are then built by enhancement. A tablet gets a second column. A laptop gets a wider grid, a fuller menu and larger images. Nothing is taken away as the screen grows, which is the opposite of the old method, where a desktop design was stripped down until it fitted. The two approaches are sometimes called progressive enhancement and graceful degradation.

AspectMobile firstDesktop first
Starting pointThe smallest screen and the most important contentA wide layout with everything on it
How other sizes are madeBy adding layout as space allowsBy removing and rearranging until it fits
CSS media queriesmin-width: styles are added for larger screensmax-width: styles are overridden for smaller ones
What phones downloadOnly what they needOften the desktop styles as well, then the overrides
Typical resultA focused page that growsA busy page that has been squeezed

Why Start With the Small Screen?

  • It forces priorities. With no room for a sidebar, a carousel and three competing banners, you have to choose what matters. Most desktop pages are better for the same discipline.
  • It matches how people arrive. For many businesses, especially local services, restaurants and shops, the first visit is more likely to come from a phone than from a computer.
  • It is what search engines see. Google indexes and ranks the mobile version of a page. If the phone layout hides content or buries it, that is the version being judged.
  • It keeps pages light. Phones are often on slower connections. Starting from the minimum makes it harder to load things nobody needs.
  • It is easier to add than to take away. Extending a simple layout is straightforward. Unpicking a complicated one for a small screen is where bugs and compromises come from.

Mobile-First CSS in Practice

In code, mobile first is a simple rule: write the styles for the narrowest screen with no media query at all, then use min-width queries to add to them.

/* Base styles: every screen, starting with the smallest */
.features {
  display: grid;
  gap: 1.5rem;
}

.site-nav {
  display: none; /* opened by the menu button */
}

/* Tablets and wider */
@media (min-width: 48rem) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Laptops and wider */
@media (min-width: 64rem) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-nav {
    display: flex;
  }
}
The single-column layout needs no media query. Each min-width rule adds to it.

A phone reads the base styles and ignores the rest. The desktop-first equivalent would write the three-column layout first and then use max-width queries to undo it, which means more code, more overrides and more places for a mistake to hide.

Tip: Use rem or em for breakpoints instead of pixels. The layout then responds correctly when someone has increased the default text size in their browser.

Designing the Page in Mobile Order

Mobile first applies to the design before any code is written. A useful exercise is to list everything the page needs to say and put it in one column, in order of importance. That order is the page.

  1. Who you are and what you offer, in one clear heading.
  2. The main action, such as calling, booking or asking for a quote.
  3. The evidence: reviews, accreditations and examples of work.
  4. The detail: services, prices and how it works.
  5. The answers to common questions.
  6. The action again, for people who needed to read first.

If you are still deciding what the site should contain, start with what pages a business website should have. On a wide screen the same content can sit in columns, but the order of importance has already been decided. Our guides to visual hierarchy and hero sections go further into what belongs at the top.

What Changes on a Phone

  • Thumbs, not cursors. Controls need to be large enough to tap and, for the most used ones, within easy reach of a thumb.
  • No hover. Menus and tooltips that depend on a mouse passing over them need another way to open.
  • Slower, patchier connections. Compress images, avoid heavy scripts and check the Core Web Vitals on a mobile connection.
  • Typing is a chore. Keep forms short and use the right input types so that the correct keyboard appears.
  • Phone features help. A tappable phone number, a map link that opens directions and a share button all do things a desktop cannot.
<a href="tel:+441632960123">Call 01632 960123</a>

<input type="email" autocomplete="email">
<input type="tel" autocomplete="tel">
A phone number that dials when tapped, and inputs that bring up the right keyboard and offer to fill themselves in.

Mobile First Is Not Mobile Only

The most common criticism of mobile-first websites is fair: some of them look like a phone layout stretched across a large monitor, with one narrow column, oversized text and a great deal of empty space. That is a failure to finish the job. Mobile first describes where you start, not where you stop.

A wide screen can show the full navigation, place supporting content beside the main text, use larger images and let people compare things side by side. Business buyers researching a supplier at their desks are still a large audience, and they deserve a layout designed for the screen in front of them.

Common Mobile-First Mistakes

  • Hiding a long menu on desktop. A menu button saves space on a phone. On a wide screen, a site with many sections is usually better showing them, although a small site with a strong visual style can carry a menu button at every size.
  • Starting with a desktop artboard. If the first mock-up is drawn at the width of a laptop screen, the project is desktop first whatever it is called.
  • Testing only in a browser preview. The preview shows the size, not the experience of holding the device.
  • Removing content for phones. Mobile first is about order and layout. The content should be the same.
  • Forgetting landscape and tablets. The sizes between phone and laptop are where layouts are most often neglected.

Putting It Into Practice

Reading about a technique is the easy part. Applying it to a real business, with real content and a launch date, takes judgement about what to use and what to leave out. DigitalPod is a UK-based design and web development studio that designs every site from a blank page and builds it by hand, so a technique is used because it helps the business and not because a template came with it. If you would like a website designer to handle it for you, startup website design is what we specialise in, websites start from £2,400 and our website redesign service brings an older site up to date.

Frequently Asked Questions

What does mobile first mean in web design?

It means designing and building the phone version of a website first and then adding layout and features for larger screens. The small screen sets the priorities, and wider screens extend them.

Is mobile-first design the same as responsive design?

No, but they work together. Responsive design is the goal: one website that adapts to every screen. Mobile first is the order in which you get there, starting from the smallest screen. A site can be responsive without having been designed mobile first, although the result is usually less tidy.

Does mobile-first design help SEO?

It helps indirectly. Google bases its index on the mobile version of a page, so a site whose phone layout carries all the content, loads quickly and is easy to use is showing the search engine its best side. No design approach can promise a particular position in the results.

Should every website be designed mobile first?

Almost always. Even where most visitors use a desktop computer, as with some business software, designing the small screen first clarifies what matters. The exception is a complex tool that cannot sensibly be used on a phone, where it is more honest to design for the desktop and offer a simplified mobile view.

What are common mobile-first breakpoints?

There is no fixed set. Many sites change layout somewhere around 48rem, roughly a tablet held upright, and again around 64rem, a small laptop, but the right breakpoints are wherever your own content starts to look stretched or cramped.

Want a Website Built This Way?

DigitalPod designs and builds websites for startups and growing UK businesses, with everything handled in-house from the first sketch to launch. Startup website design starts from £2,400, or you can read what clients say in our Trustpilot reviews.

Get a quote

Related Web Design Techniques

More from our web design techniques guides. For costs, briefs and choosing a designer, see the startup blog.