Free auditStart free
GlossaryGlossary · Performance

Responsive design

Responsive design changes a site's layout to suit the device. The viewport tag, media queries, flexible layouts, breakpoints and what Google recommends.

3 min
read
3
sources
Oct 24, 2026
updated
Scaplet Editorial Team
author
In one line

Responsive web design is a design strategy that responds to users' needs and their devices' capabilities by changing a site's layout to suit the device being used. One set of HTML and CSS serves every screen. Google recommends it because it is the easiest design pattern to implement and maintain.

30-second check

Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Check it

What responsive design is

web.dev describes responsive web design as "a design strategy that responds to users' needs and their devices' capabilities by changing a site's layout to suit the device being used." MDN calls it an approach, not a separate technology: a set of best practices for a layout that can respond to any device.

In Google's mobile-first indexing documentation, a responsive site serves the same HTML on every device and uses CSS to change how it looks. That avoids maintaining separate mobile and desktop versions.

web.dev says width=device-width tells the page to match the screen's width in device-independent pixels, which lets content reflow across screen sizes. MDN says to always include the viewport meta tag in the <head>.

Essential responsive design setup
<meta name="viewport" content="width=device-width, initial-scale=1" />
02Worth knowing

Core principles of responsive design

Viewport meta tag

include it so mobile browsers use the device's width.

Content sizing

web.dev says content shouldn't rely on a particular viewport width to render well. Give images max-width: 100% and avoid fixed pixel widths.

Flexible layouts

use Flexbox, CSS Grid or multi-column layout so content adapts to the space available.

Media queries

web.dev describes them as simple filters that change styles based on the type of device rendering the content, and on features such as width, height, orientation and whether the device is a touchscreen.

Content-based breakpoints

web.dev says not to define breakpoints based on device classes, products, brand names or operating systems. Widen the layout until it starts to look wrong, then add a breakpoint.

03Check it

Key CSS techniques for responsiveness

Flexbox and CSS Grid let a layout adapt without per-device code. The two snippets below build a card layout that wraps on its own.
Responsive grid with CSS Grid
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

/* Grid automatically adjusts columns based on space */
Responsive layout with Flexbox
.container {
  display: flex;
  flex-wrap: wrap;
}

.item {
  flex: 1 1 300px;  /* basis 300px, grows and shrinks, wraps when space runs out */
}

@media (max-width: 600px) {
  .item {
    flex-basis: 100%;  /* one item per row on narrow screens */
  }
}

img {
  max-width: 100%;
  height: auto;
}
04At a glance

Benefits of responsive design

The main advantage over separate mobile and desktop sites is that you maintain one site. Google says it "recommends Responsive Web Design because it's the easiest design pattern to implement and maintain." Google's mobile-first indexing guide lists dynamic serving and separate URLs as the alternatives.
Benefit

One codebase

Impact
One set of HTML and CSS to maintain, with no mobile and desktop copies to keep in sync
Benefit

Content parity

Impact
The same content is served to every device by default, which is easier to keep consistent
Benefit

New screen sizes

Impact
Fluid layouts and content-based breakpoints don't depend on specific devices
Benefit

Google's recommendation

Impact
Google's guide lists dynamic serving and separate URLs as the other configurations
05Checklist

Common responsive design mistakes

First2
Missing the viewport meta tag. MDN says to always include it, and web.dev's examples depend on width=device-width.
Fixed pixel widths. A 960px container doesn't adapt to a 360px screen. Use fluid widths and max-width.
Next2
Breakpoints named after devices. web.dev says to base them on content, not device classes.
Testing only by resizing the desktop browser window. Also check browser device emulation and at least one real phone.
Then2
Hover-only interactions. web.dev notes that some devices cannot hover, so every action needs a tap or focus path.
Shipping desktop-sized images to phones. Use srcset or <picture> so small screens download smaller files.
Questions

Asked a lot.

3 questions people ask next, answered from the sources on this page.

01Do I need the viewport meta tag?

Yes. MDN says to always include it in the <head>. Use <meta name="viewport" content="width=device-width, initial-scale=1">, the form web.dev uses.

02Do I need separate CSS files for different devices?

No. Use one stylesheet and apply device-specific rules with media queries. Separate files for each device multiply what you have to maintain.

03How does responsive design affect SEO?

Google recommends responsive web design for mobile-friendly sites because it is the easiest pattern to implement and maintain. It serves the same HTML on every device, which suits mobile-first indexing, where Google uses the mobile version of a site's content for indexing and ranking.

Sources · 3

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • web.dev
  • mozilla.org
  • google.com
  1. 01Responsive web design basics (web.dev)web.dev · checked 2026-10-24
  2. 02Responsive web design (MDN)developer.mozilla.org · checked 2026-10-24
  3. 03Mobile-first indexing best practices (Google Search Central)developers.google.com · checked 2026-10-24
Free · 2 minutes

Know the term. Now check your site.

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly