A responsive website is one that adapts to the screen of whoever is looking at it: same address, same HTML, a layout that changes between phone, tablet and desktop. Today it's no longer a matter of style. Google indexes and ranks sites based on their mobile version, and for a great many businesses most visits come from smartphones (check your own data to see how many in your case).
In this guide we'll look at what responsive really means, the techniques used to build it today, how to check it, and the mistakes we see most often.
What responsive design is
Responsive design is a way of designing and developing in which the page adapts to the space available: columns stack, images resize, the menu collapses. One site for every device.
It's different from adaptive design, where you prepare fixed layouts for a few widths, and from the old separate mobile sites (like m.yoursite.com), which duplicate content and work. Google recommends responsive design because it's the easiest model to build and maintain: the same URL and the same HTML for everyone, so there's no risk of the mobile version having less content than the desktop one.
Why it matters for your business
- SEO. With mobile-first indexing, anything that isn't on the mobile version doesn't exist as far as Google is concerned. Text, structured data, titles and meta descriptions must be the same on mobile and desktop.
- Sales and leads. A form that's awkward to fill in with your thumb, a button that's too small, a checkout that needs zooming: these are lost inquiries and orders, and you don't notice because nobody writes in to complain.
- Advertising. Much of the traffic from Meta and TikTok comes from smartphones. If you pay to bring people to a page that works badly on a phone, you're paying to make them leave.
- Accessibility. Readable text, buttons big enough to tap and pages that hold up when zoomed help everyone, not just people with disabilities.
How a responsive site is built today
The basic techniques have been stable for years; more recently, new ones have been added, now supported by all major browsers.
The viewport tag
Without this line in the page's head, the phone shows a shrunken desktop version. This is the version recommended by web.dev:
<meta name="viewport" content="width=device-width, initial-scale=1">
Fluid layouts with flexbox and grid
No fixed pixel widths for the main containers: they force horizontal scrolling on small screens. Flexbox is for aligning elements in a row or a column (a menu, a row of cards), grid for two-dimensional layouts (a product grid, a page with columns).
Media queries and breakpoints
Media queries apply different styles depending on the screen width. web.dev's advice is not to choose breakpoints based on devices ("iPhone", "iPad") but based on content: start with the layout for small screens and add a breakpoint when the design needs one, for example when a line of text gets too long to read comfortably.
Container queries
They're the most useful new feature of recent years: a component changes its appearance based on the space of its container, not the width of the screen. The same product card can sit in a narrow column or a wide section without writing rules for every page. They've been supported by all major browsers since 2023 and can be used today without any problems.
Flexible images
Give images max-width: 100% and always specify width and height: that way the browser reserves the space and the page doesn't jump around while loading (that's what CLS in Core Web Vitals measures). Use srcset to serve smaller files to phones, and SVG for logos and icons. We have a guide on lazy loading and one on image optimization.
Text and relative units
Use rem for text sizes so they respect the reader's browser settings. Keep lines of text short: web.dev cites the classic benchmark of 70-80 characters per line. With clamp() you can make headings and spacing grow fluidly between a minimum and a maximum.
Tap targets
Buttons and links must be easy to hit with a finger and not too close together. The WCAG 2.2 guidelines set a minimum of 24×24 CSS pixels for clickable elements (with some exceptions); for primary buttons, it's best to stay well above that.
How to check whether your site is responsive
Google's old Mobile-Friendly Test was retired in December 2023, along with the Mobile Usability report in Search Console. Today these are the tools to use:
- Chrome DevTools, device mode: you simulate different widths and immediately spot elements that overflow the screen.
- Lighthouse, built into Chrome: this is the tool Google points to in place of the old test. It checks performance, accessibility and best practices.
- PageSpeed Insights: Core Web Vitals measured on real Chrome users, split between mobile and desktop.
- Google Search Console: the Core Web Vitals report shows the groups of pages with problems for real users.
- Real devices. No simulation replaces a phone in your hand: test at least one iPhone and one mid-range Android, on a mobile connection. If you need many devices, services like BrowserStack provide them remotely.
What to check in practice: no horizontal scrolling, text readable without zooming, a menu that opens and closes properly, forms that bring up the right phone keyboard (numeric for phone numbers, email for email), popups that close easily, and a checkout or contact request that can be completed all the way through.
Mistakes we see most often
- Hiding content on mobile "to lighten the page": Google reads the mobile version, so for Google that content disappears.
- Designing for desktop and adapting later. The result is a site built for a wide screen and squeezed into a phone. It's better to start from mobile.
- Images loaded at full size and then shrunk by the browser: they weigh as much as on desktop.
- Full-screen popups on arrival, hard to close on a phone.
- Testing only in the simulator and never on a real phone, with real fingers and a mobile connection.
- Buttons placed too close together, so people tap the wrong one.
Frequently asked questions
Does responsive design affect SEO?
Yes. Google uses the mobile version for indexing and ranking, recommends responsive design as a setup, and speed measured on phones is part of Core Web Vitals.
Responsive site or app?
For most businesses and e-commerce stores, the responsive site comes first: it's what Google finds and what people land on when they click an ad. An app makes sense when you have customers who come back very often and features the site can't offer.
Is my Shopify or WordPress theme already responsive?
Almost all recent themes are. The problem comes later: added sections, apps, badly uploaded images, customizations made while looking only at desktop. That's why it's worth checking your main pages on a real phone after every change.
If you want a site designed for the phone first, see how we approach web development or let's talk.
