Responsive design

Responsive web design (RWD)

Responsive design is a way of building one website so its layout adapts to the screen it is shown on, from phone to desktop.

Checked 27/11/2026 against 6 sources. Next review 27/05/2027.

Responsive web design, or RWD, is a design approach that addresses the full range of available devices and device sizes [1]. It is not a separate technology. You build one site whose layout flexes to fit the screen, using fluid grids, flexible images and media queries [1]. Google recommends it for mobile sites because it is the easiest pattern to build and maintain [5]. It also underpins good UX design on a phone.

What does the viewport meta tag do?

Without it, a phone may render your page at a desktop width. MDN explains that when smartphones first arrived, most sites were not mobile optimised, so mobile browsers set the viewport to 980 pixels and showed a zoomed-out desktop layout [1]. The tag overrides that with the device's actual width [1].

<meta name="viewport" content="width=device-width" />

MDN says that without the tag, your responsive design with breakpoints and media queries may not work as intended on mobile browsers [2]. Put it in the head of every page. One option to avoid is user-scalable set to no, because MDN warns it stops people with low vision from reading and understanding page content [3].

What are breakpoints and media queries?

A media query is a CSS rule that applies only when a condition is true, such as a minimum screen width. The points where the layout changes are called breakpoints [1]. MDN describes a common approach: start with a simple single-column layout for narrow screens, then add columns when the screen is wide enough, which is called mobile-first design [1]. It also advises defining breakpoints in relative units, not the sizes of one particular device [1].

@media screen and (width >= 80rem) {
  .container { margin: 1em 2em; }
}

That rule from MDN applies only to screen media at least 80rem wide [1]. Media queries are not a requirement: flexible grids, relative units and minimum and maximum values can work without them [1]. Flexbox and CSS Grid are responsive by default [1].

How does responsive design relate to Google mobile-first indexing?

Google uses the mobile version of a site's content for indexing and ranking, which it calls mobile-first indexing [5]. Having a mobile version is not required for your content to be included in Search, but Google says it is very strongly recommended [6]. Google lists three ways to build a mobile-friendly site:

SetupHow Google describes it
Responsive designThe same HTML on the same URL for every device, displayed differently by screen size [5]
Dynamic servingThe same URL, but different HTML for different devices [5]
Separate URLsDifferent HTML on separate URLs for each device [5]

With responsive design, the content and metadata are the same on mobile and desktop [5]. If a mobile page shows less content than the desktop one, Google advises updating the mobile page so its primary content is equivalent to the desktop page [5]. Google says having the same content on both versions means they can rank for the same keywords [5], which is why SEO and layout meet here. For the broader picture of site speed on phones, see Core Web Vitals.

A worked example

Say your shop page has a four-column product grid. On a phone, one column fits, so a media query switches the grid to one column below a chosen width. The product text, prices and the call to action stay in the page for both layouts. Only the arrangement changes.

Is responsive design the same as a mobile site or an app?

Mostly the same goal, different method. MDN says earlier terms such as mobile web design and mobile-friendly design aim at the same thing: sites that work well across devices of different screen size and resolution [1]. The difference is that today's phones handle the same technologies as desktops, so serving a separate stripped-down site is less common [1]. For an installable option, see progressive web app.

web.dev puts the expectation plainly: people rightly expect websites to look good whatever device they use, and responsive design makes that possible [4].

Questions people ask

What is responsive design in simple terms?

It is building one website that rearranges itself to fit the screen, whether phone, tablet or desktop. MDN calls it a design approach, not a separate technology [1].

Does Google prefer responsive websites?

Google recommends responsive web design because it is the easiest design pattern to implement and maintain, and says a mobile version is very strongly recommended for Search [5][6].

Do I need the viewport meta tag?

Yes for a responsive site. MDN says without it your breakpoints and media queries may not work as intended on mobile browsers, because the browser may report a desktop width [1][2].

Blog posts that use this term

See also

  • UX design UX design is the work of shaping how a person experiences a company, its services and its products, from first click to after the sale.
  • Core Web Vitals Core Web Vitals are three measurements of how fast, responsive and stable a web page feels to real visitors: LCP, INP and CLS.
  • Progressive web app A progressive web app, or PWA, is a website built so it can be installed on a device and used like an app.
  • WCAG WCAG is the international standard from the W3C that sets testable rules for making web content usable by people with disabilities.
  • SEO SEO is the work of making your website easy for search engines to understand and easy for people to find in search results.
  • Landing page A landing page is the page a person arrives on after clicking your ad, and it should match what the ad promised.

References

  1. Responsive web design, MDN Web Docs. Read 27/11/2026.Responsive web design, or RWD, is a design approach that addresses the full range of available devices and device sizes
  2. Responsive web design (viewport meta tag), MDN Web Docs. Read 27/11/2026.Without it, your responsive design with breakpoints and media queries may not work as intended on mobile browsers.
  3. <meta name="viewport">, MDN Web Docs. Read 27/11/2026.Disabling zooming capabilities by setting user-scalable to a value of no prevents people experiencing low vision conditions from being able to read and understand page content.
  4. Learn Responsive Design: Introduction, web.dev (Google). Read 27/11/2026.People rightly expect that websites look good no matter what device they use. Responsive design makes this possible.
  5. Mobile site and mobile-first indexing best practices, Google Search Central. Read 27/11/2026.Google recommends Responsive Web Design because it's the easiest design pattern to implement and maintain.
  6. Mobile site and mobile-first indexing best practices, Google Search Central. Read 27/11/2026.While it's not required to have a mobile version of your pages to have your content included in Google's Search results, it is very strongly recommended.