
Summary: Responsive design is the technique that lets the same page, at the same address, rearrange itself to fit the screen. It relies on three pieces: the viewport meta tag, flexible layouts with media queries and images that adapt. Since Google indexes the mobile version of pages, a site that's poor on phones loses visitors and may lose visibility.
Some business owners only ever see their own website on the office computer, where everything looks great. But many customers arrive by phone, from Instagram or a quick search. On a phone the story can be different: tiny text, buttons you can't tap, a disappearing menu, a cut-off table.
What responsive design is
It's a development approach where there's a single HTML and CSS adapts the presentation: three columns on a computer; one below another on a phone, with readable text and buttons big enough for a finger. Google recommends responsive design as the easiest configuration to implement and maintain (mobile-first indexing best practices).
Why it matters to Google
Google uses mobile-first indexing: it primarily crawls and indexes the mobile version of pages. If any content, heading, link or structured data exists only on the desktop version, it may not be considered. On a responsive site, content is identical in both, which removes that risk.
How to test your site
Google's old "Mobile-Friendly Test" was retired in December 2023. Today, use:
- A real phone, on mobile data. Read without zooming, tap the WhatsApp button, fill in the form to the end, rotate the screen.
- Chrome DevTools: press F12 and enable the device toolbar (Ctrl+Shift+M) to view the page at various widths. Test in-between widths, not just preset models.
- Lighthouse (in DevTools or PageSpeed Insights): flags problems such as a missing viewport, small fonts and tap targets too close together.
- URL Inspection in Search Console: shows the page as Googlebot smartphone rendered it.
The technical pieces
1. Viewport meta tag
Without it, the phone browser pretends to have a wide screen and shrinks the whole page. It's mandatory:
<meta name="viewport" content="width=device-width, initial-scale=1">
Don't disable zoom with user-scalable=no or maximum-scale=1: it harms accessibility for people who need to enlarge text.
2. Flexible layout and media queries
Start with mobile (mobile-first) and add rules for larger screens. CSS Grid and Flexbox handle most layouts without fixed widths (MDN: responsive design):
.services { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) {
.services { grid-template-columns: repeat(3, 1fr); }
}
3. Images and media that adapt
img, video { max-width: 100%; height: auto; }
Use srcset and sizes so phones download smaller images, and declare width and height to keep the layout from jumping. We explain it in detail in a slow website loses customers.
4. Readable text
A base font size of at least 16 px for body text is common practice, with comfortable line height and enough contrast. WCAG 2.2 requires a minimum contrast of 4.5:1 for normal text (level AA) and that content work when zoomed to 200% and on screens 320 px wide without horizontal scrolling.
5. Touch targets
Buttons and links must be easy to tap and well spaced. WCAG 2.2 (criterion 2.5.8, level AA) sets a minimum of 24 × 24 CSS pixels for targets, with exceptions; many mobile platform guidelines recommend larger targets, around 44 to 48 px.
6. Tables and wide elements
Wrap tables in a container with overflow-x: auto or rearrange columns into cards on mobile. Never let the whole page scroll horizontally.
What a non-responsive site loses
- Visitors: nobody persists with a difficult site when a competitor is one tap away.
- Conversions: forms and buttons that are hard to use on mobile reduce quote requests.
- Visibility: with mobile-first indexing, whatever doesn't work on mobile may not be considered.
Is responsive just shrinking the screen?
No. A good project decides what customers need to see first on a phone, where the contact button goes and how the menu behaves. That's where UX/UI design comes in. Every site we build is responsive by default and tested on real devices. If yours fails the tests above, see how much a professional website costs.
Sources and references
- Google: mobile-first indexing
- MDN: responsive design
- MDN: viewport meta tag
- W3C: WCAG 2.2
- web.dev: Learn Responsive Design
Frequently asked questions
How do I know if my site is responsive?
Open it on a phone: if you have to zoom to read or there's sideways scrolling, it isn't. Confirm with Chrome DevTools' device toolbar and Lighthouse.
Does Google's mobile-friendly test still exist?
No. The tool was retired in December 2023. Use Lighthouse, Chrome DevTools and Search Console's URL Inspection.
Are a responsive site and a separate mobile site (m.site) the same?
No. A responsive site uses the same address and HTML. Separate versions require keeping two sites in sync, and Google recommends responsive because it's simpler.
Can an old site be made responsive?
Sometimes, by rewriting the CSS. When the code is very old or built on layout tables, rebuilding is usually cheaper and better.
Does your website struggle on mobile?
We build websites that work well on any screen and are optimized for Google from day one.
Read also
- A slow website loses customers: how to make your site faster
- Website UX: 7 simple tweaks that increase quote requests
- How to create a website for your business: step by step
Written by Mário Moreno, founder of Agência hetsi, which has been building websites and handling digital marketing for businesses in Brazil and abroad since 2000. Mário Moreno on LinkedIn