Responsive design: how websites adapt to mobile phones

How responsive design works, why Google looks at the mobile version of your website and what to check on your phone to avoid losing customers.

27Views

Responsive design: how websites adapt to mobile phones

Responsive design is a way of building a website so that the same page at the same URL automatically adjusts to the screen width. On a computer, the menu appears in a row. On a phone, it collapses into a button, columns stack vertically, images shrink, and text remains readable without zooming in. There is no need for a separate mobile version: the website stays the same, and only the layout changes.

How a website adapts to mobile phones

Responsive design relies on three things. The first is the viewport meta tag in the page code. It tells the mobile browser to display the page at the actual screen width rather than as a scaled-down copy of the desktop version. Without it, the website looks like a tiny image that users have to zoom in on.

The second is a fluid grid. Content blocks are sized as proportions of the available width rather than fixed pixels, so they expand and shrink with the browser window. Images have a maximum width of 100%, preventing them from extending beyond the screen.

The third is CSS media queries. These are rules that tell the browser what to change when the screen width falls below a certain value. The widths at which the layout changes are called breakpoints. For example, below 1,024 pixels, three columns of cards become two. Below 600 pixels, they become one.

Sometimes a distinction is made between adaptive and responsive layouts. Adaptive design uses several fixed layouts for different screen widths, while responsive design adjusts continuously to any width. In practice, modern websites combine both approaches, and both are commonly referred to as responsive design.

The order of work also matters. With a mobile-first approach, designers and front-end developers first decide how the page should look on a narrow phone screen. They then add columns and details for tablets and computers. This makes it easier to preserve the essentials: the heading, price and request button. Starting with a wide layout often leaves phone users with a cramped, cluttered copy of the desktop version.

Why businesses need responsive design

  • Mobile visitors. Many small business websites, especially those receiving traffic from Instagram, TikTok and search engines, get most of their visits from smartphones. Google Analytics will show the exact figures for your website.
  • Google indexing. Google switched websites to mobile-first indexing and announced the completion of the transition in 2023. This means it uses the mobile version of a page for indexing and ranking. Content missing from the mobile version is effectively invisible to Google.
  • Advertising. Paying for a mobile click that leads to a difficult-to-use page is a waste of money. Customers will not search for a "Buy" button underneath an oversized table.
  • One website to maintain. Maintaining a single responsive website costs less than maintaining a desktop website and a separate mobile version on a subdomain.

Google's guidelines explicitly recommend responsive design as the easiest option to implement and maintain. The HTML and URL stay the same, and only the way the content is displayed changes.

What should work on a phone

Simply fitting a website onto the screen is not enough. Check the following on your phone:

  1. Text is readable without zooming. The main font size is around 16 pixels, lines are not too long, and there is sufficient contrast.
  2. Buttons are easy to tap. Tap targets should be at least around 44 to 48 pixels, with enough space between adjacent links.
  3. Phone numbers and messaging links are clickable. Tapping the phone number starts a call, while Telegram and Viber buttons open a chat.
  4. Forms are short. The phone number field opens a numeric keypad, and there are no unnecessary fields. The font size in input fields is at least 16 pixels. Otherwise, an iPhone zooms in when the user enters text.
  5. There is no horizontal scrolling. Tables scroll within their own containers or are rearranged into cards.
  6. Pop-ups do not cover the entire screen. The close button is visible and easy to reach.
  7. Pages load quickly over mobile networks. Images are compressed and served at sizes appropriate for the screen. Large video files do not load immediately.

Content on the mobile version

A common mistake is hiding some text, customer reviews or product specifications on phones to save space. Google recommends keeping the main content consistent across mobile and desktop versions. You can collapse content into an accordion or organize it into tabs, but you should not remove it. Removed content will not be indexed.

The same applies to lazy loading. If part of a product catalog loads only after a swipe or button click, search engine crawlers will not perform these actions and may miss those products.

How to test whether your website is responsive

The most reliable method is to open your website on actual phones: a budget Android phone with a small screen and an iPhone. Go through the entire process as a customer would: find a service, open a product page and submit a request.

For a quick desktop check, use your browser's developer tools. In Chrome, press F12 to open them, enable device emulation and adjust the viewport width. Test common widths: 360, 390, 768, 1,024, 1,280 and 1,440 pixels. Look for overlapping elements, clipped text and horizontal scrolling.

PageSpeed Insights shows how quickly a page loads on mobile devices and identifies large images and scripts.

When rebuilding a responsive layout is easier than fixing it

If a website was built ten years ago for wide monitors using tables or an outdated website builder, mobile support is often added through a series of patches. Each fix breaks something elsewhere, and the website remains difficult to use. In this case, it is cheaper to build a new template designed for phones from the start and transfer the existing content.

If the website is relatively new and the problems are isolated, such as a misaligned header, an oversized table or small buttons, CSS changes can fix them within a few days.

How WID7 can help

Every website we build using our WID CMS is responsive from the start and tested on phones, tablets and computers before launch. Details and delivery times are available on our website development page. For example, a corporate website costs from UAH 30,000 and takes two weeks, while an online store costs from UAH 50,000 and takes about a month.

If you already have a website that is difficult to use on phones, start with a website audit from UAH 3,500. We will identify what causes problems for mobile visitors and tell you whether a few fixes are enough or a new template would be more cost-effective.

Rate this article

Other articles

loading