Viewport meta tag
include it so mobile browsers use the device's width.
Responsive design changes a site's layout to suit the device. The viewport tag, media queries, flexible layouts, breakpoints and what Google recommends.
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.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
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>.
<meta name="viewport" content="width=device-width, initial-scale=1" />include it so mobile browsers use the device's width.
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.
use Flexbox, CSS Grid or multi-column layout so content adapts to the space available.
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.
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.
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1rem;
}
/* Grid automatically adjusts columns based on space */.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;
}width=device-width.max-width.srcset or <picture> so small screens download smaller files.3 questions people ask next, answered from the sources on this page.
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.
No. Use one stylesheet and apply device-specific rules with media queries. Separate files for each device multiply what you have to maintain.
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.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.