Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk5 min

How to Build a Mobile-Friendly Website

Make a site work on phones with a flexible layout, readable content, usable controls and a clear plan for responsive testing.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Build the page to fit the screen it is viewed on: start with a readable, single-column layout, let text and images reflow, then add columns only when the content has enough room. Add a viewport setting, make controls usable by touch and keyboard, and test narrow widths, zoom and performance separately.

1. Tell mobile browsers to use the device width

Put this in the document’s <head>:

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

Without an appropriate viewport setting, some mobile browsers may use a wider virtual viewport and scale the page down. The result can be tiny text and controls even when the page appears to fit. The MDN viewport metadata reference explains the setting.

2. Start with a flexible, narrow-screen layout

Responsive design is not a separate technology: it is a way of arranging content so it adapts to its viewing environment. Build a simple layout that works in a narrow viewport first, then use CSS to add columns or other changes when the content can use the extra space. MDN’s responsive web design guide introduces this approach.

  • Avoid fixed page widths that force horizontal scrolling on phones or leave excessive empty space on wide screens.
  • Let text and other content wrap naturally; use flexible sizing and modern CSS layout methods.
  • Constrain images to their containing space so they do not overflow it.
  • Choose breakpoints where the content needs a different arrangement, rather than targeting named devices. A navigation bar or card layout may need to change when its contents no longer fit comfortably—not simply because a particular phone model exists.

For example, a product description and image may stack on a narrow screen and sit side by side on a wider one. Keep the document’s reading and keyboard order coherent if you change the visual arrangement. See MDN’s media query fundamentals for how CSS media queries apply styles under viewport conditions.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

3. Keep the page readable when users zoom or reflow content

Do not disable browser zoom. Use relative text sizing and a flexible layout so content can respond to zoom and user preferences. At 320 CSS pixels, a common W3C reflow test width for article-style pages, users should be able to read and use the content without unnecessary horizontal scrolling. This is a reflow check, not a claim that every device has that screen width. The W3C WAI explanation of Reflow describes the criterion and its scope.

Visual order and document order should make sense together. If a breakpoint moves an element visually, check that keyboard users still encounter it in a logical position. Google’s accessible responsive design guidance covers responsive layouts and accessibility considerations.

Rank #2
KAFENDA Password Book with Alphabetical Tabs, Address Book for Website Logins, Pocket Size 6.1" x 4.9", PU Leather Hardcover
  • 【Never Panic Over Forgotten Passwords Again】 Tired of the endless cycle of "forgot password" links and locked accounts? This password book is your ultimate solution to keep all website, app, and online service login details organized in one secure place. No more scrambling to recall complex codes—your entire digital keychain is right at your fingertips.
  • 【Alphabetical Organization for Instant Access】 Designed with a user-friendly alphabetical layout, this password keeper lets you locate any password in seconds. Whether you need your social media login or online banking credentials, simply flip to the corresponding letter section—no more wasting time flipping through messy notes or scrolling through phone files.
  • 【Premium Leather Feel & Durable Hardcover】 Crafted with high-quality PU leather and a sturdy hardcover, this address book not only looks sleek and professional but also stands up to daily use. The durable material protects your sensitive information from scratches, spills, and wear, ensuring your data stays safe for years.
  • 【Pocket-Sized Convenience for On-the-Go Use】 Measuring just 6.1" x 4.9"(155mm x 123mm), this small password book fits perfectly in your purse, backpack, or even your pocket. Take it with you to work, while traveling, or keep it handy at home—access your passwords whenever and wherever you need them, without carrying bulky notebooks.
  • 【Ample Storage for All Your Digital Life】 With 120 pages and space for 3 password entries per page, this password book with alphabetical tabs can store up to 360 sets of login information. That’s enough to cover all your family’s accounts, from streaming services and email to online shopping and gaming—no need for multiple notebooks or digital tools.

4. Make buttons and links comfortable to use

Give touch controls enough area to tap and enough separation from nearby controls. Google web.dev suggests targets around 48 device-independent pixels with about 8 pixels of spacing as practical guidance—not as a binding WCAG requirement. Padding can enlarge an icon’s hit area without changing its appearance. Review the accessible tap targets guidance.

  • Check links and buttons at narrow widths, where nearby targets are easier to hit accidentally.
  • Use a visible keyboard focus indicator and confirm that pressing Tab follows a sensible order.
  • After rearranging content at a breakpoint, test keyboard focus order again rather than assuming the visual layout determines it.

5. Test the responsive experience at more than one width

Use Chrome DevTools responsive mode to inspect selected viewport widths, but do not treat one phone preset or one screenshot as proof that the page works everywhere. Check both the layout and how a person can navigate it.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Open the page in a browser and enable responsive device emulation in Chrome DevTools.
  2. Inspect a narrow viewport, a wide viewport and widths around each breakpoint. Look for clipped text, overflowing images, horizontal scrolling and controls that become crowded.
  3. Zoom in and confirm the content remains available and usable.
  4. Navigate with a keyboard. Check visible focus, reading order and whether interactive elements can be reached and activated.
  5. Try touch controls on a touch device where available; emulation does not establish how every device feels in use.
  6. Capture screenshots at useful widths to compare layout changes during review. A screenshot documents appearance, but it does not test keyboard access, touch usability or performance.

6. Measure performance separately from layout

A page can adapt to a narrow screen and still load slowly, respond late to input or shift while loading. Core Web Vitals address loading, responsiveness and visual stability. Google web.dev’s recommended good-experience targets are LCP within 2.5 seconds, INP at or below 200 milliseconds, and CLS at or below 0.1, evaluated at the 75th percentile and segmented by mobile and desktop. These are performance targets; they do not prove a page is usable. Review the current definitions and guidance in Google web.dev’s Web Vitals overview.

When assessing performance, distinguish real-user field data from controlled lab measurements. Consider mobile and desktop separately: a desktop result alone does not establish how the site performs for phone visitors.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Common problems and fixes

  • Everything looks tiny on a phone: confirm the viewport meta element is present in the page head and uses width=device-width.
  • The page scrolls sideways: find fixed-width containers or oversized images, then allow the layout and media to fit their containing space.
  • A breakpoint makes keyboard navigation confusing: check source and focus order after visual rearrangement, and adjust the layout so the sequence stays logical.
  • Buttons are difficult to tap: enlarge the hit area with padding and add spacing between adjacent controls.
  • The screenshot looks correct but the page still feels slow or unstable: measure loading, input responsiveness and layout stability separately; a visual capture does not establish performance.

Or skip the browser setup

If you need screenshots of the responsive page at different viewport sizes during review, ScreenshotNeo can return a screenshot with one GET request. For example, this cURL request captures the page at its default viewport settings:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp

See the ScreenshotNeo API documentation for request options, including device presets and viewport configuration. ScreenshotNeo removes cookie banners, newsletter popups and chat widgets before the shot; bot checks, blank pages and failed loads are never billed. Its MCP server lets AI agents take screenshots, and the free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000. A screenshot can help inspect appearance, but it cannot replace keyboard, touch or performance testing. Sign up for 1,000 free screenshots a month with no card.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.