To optimise a website for mobile, use a responsive design that shows the same content as your desktop site, make key pages fast enough to meet Google's Core Web Vitals thresholds, make every button easy to tap and every form easy to fill on a small screen, and avoid pop-ups that cover the page. Test with Lighthouse and on real phones. The audit table below lists each check, how to test it and when it passes.
Accessing websites on several devices was once a problem: most people used the internet on a desktop computer. Times have changed. Phones are now a common way to browse and shop on the go, so a site that works well on a phone can reach a much wider audience. In this article we cover the main ways to optimise your website for mobile.
Five checks to run on every key page template: home, category, product, cart and checkout.
Before You Start: The Importance of Mobile
Your website has to work smoothly on mobile devices. If it does not yet, now is the time to fix it. Before we look at how, here is why mobile matters for a business:
Google indexes the mobile version. Google's Search Central documentation states that Google uses the mobile version of a site's content, crawled with the smartphone agent, for indexing and ranking. If content is missing on mobile, Google may not see it.
Speed counts on phones. Google's documentation states that Core Web Vitals are used by its ranking systems, and web.dev recommends measuring them separately for mobile and desktop.
Customers judge you on their phone. For many shoppers, the first visit to your store happens on a phone. If the page is slow or hard to use, they leave before they see what you sell.
How to Define if Your Website Is Mobile-Friendly or Not?
Start simply: imagine you are a potential customer and open your website on your phone. Is it loading quickly? Is it easy to find what you are looking for? Is the main action, such as adding a product to the cart, easy to take?
If the answer to any of these is no, the site needs mobile optimisation. Visitors on a phone expect answers immediately: what you offer and whether it is right for them. Their experience on the site shapes their impression of your business and the chance that they become customers.
A phone check shows obvious problems. For a full picture, run the audit below on each key page template. Google's own Mobile-Friendly Test and the Mobile Usability report in Search Console were retired on 1 December 2023; Google now points to Chrome Lighthouse, which can help identify page experience improvements, including mobile usability.
Mobile audit table
Check
How to test
Passes when
Responsive layout
Open the page on a phone and in the browser's device mode; check the page source for a viewport tag
The page includes <meta name="viewport" content="width=device-width, initial-scale=1"> and content fits the screen without sideways scrolling or zooming
Same content as desktop
Compare mobile and desktop versions of key pages
Text, images with their alt text, headings, structured data, titles and meta descriptions are equivalent
Loading (LCP)
Field data in Search Console's Core Web Vitals report or PageSpeed Insights; Lighthouse for lab checks
Largest Contentful Paint within 2.5 seconds at the 75th percentile of mobile page loads
Responsiveness (INP)
Field data as above
Interaction to Next Paint of 200 milliseconds or less
Visual stability (CLS)
Field data as above; watch the page load on a phone
Cumulative Layout Shift of 0.1 or less; buttons do not move as the page loads
Tap targets
Tap through menus, filters, cart and checkout on a phone
Buttons and links are about 48 by 48 pixels or larger, with space between them
Forms
Fill in search, sign-up and checkout on a phone
Each field opens the right keyboard (email, phone, number) and supports autofill
Interruptions
Visit key pages as a new visitor
No pop-up covers the whole page; offers and app prompts use small banners
Main journey
Ask a few people to find and buy a product on their own phones
They complete the purchase without help
The rest of this article explains how to fix what the audit finds.
11 Best Ways of How to Optimize a Website for Mobile
Before you start, understand what mobile optimisation involves and what it can do for your business. Look at how your own customers use your site: which devices and screen sizes they use and which pages they visit most on a phone. Your analytics tool shows this, and it tells you which templates to fix first.
1. Make simplicity your priority
The first step is deciding what content each page needs:
Work out what information a typical visitor is looking for on each page and put it first.
Look at how much screen space each element takes on a small screen.
Remove or move what does not help the visitor's next step.
A page that is simple on a phone is usually easier to use on every other device too.
2. Make a plan for your website's layout
Phones have small screens and are often on slower or less stable connections, so keep each mobile page focused and its layout streamlined. A single-column layout, a clear menu and a visible search bar work for most stores. Put yourself in the user's shoes and keep the layout as simple as possible.
Technically, a responsive layout starts with the viewport meta tag. web.dev's responsive design guidance states that pages optimised for a variety of devices must include a meta viewport tag, and recommends width=device-width, initial-scale=1.
3. Focus on touch, making navigation responsive
On a touch screen, users navigate with their fingers. Make navigation work for fingers of different sizes, and do not force users to pinch and zoom to read or tap.
The most common problem is inaccurate tapping: buttons and links that are too small or too close together. web.dev recommends a minimum touch target size of around 48 device-independent pixels, which corresponds to about 9 mm; an icon can be smaller if padding brings its tap area up to 48 pixels.
4. Use compression tools in the design
Smaller files load faster, which matters most on a phone:
Minify HTML, CSS and JavaScript to remove unnecessary code and white space. Most build tools and many platforms do this automatically.
Compress images and serve sizes that match the screen. web.dev's image performance guidance describes using srcset so the browser can choose the right image size.
Lazy-load images further down the page, but do not lazy-load images that are likely to be visible when the page loads, especially the Largest Contentful Paint image, as web.dev cautions.
Remove third-party scripts you do not need; each one adds work for the phone.
5. Make sure all the branding features on your standard site are also added to your mobile version
Users should recognise your brand on any device. Keep the logo, colour scheme, fonts and tone consistent between desktop and mobile, so customers who switch devices know they are in the same store.
6. Make sure you use white space
A common mistake is overcrowding a small screen. Limit the number of elements on each screen and use white space around them. Text, prices and important buttons, such as the checkout button in an online shop, stand out better when they have room around them.
7. Use an appropriate solution: web standards, not plug-ins
Mobile visitors use many different devices and browsers, most of them on Android or iOS. Build with standard HTML, CSS and JavaScript that current mobile browsers support, and avoid any content that depends on browser plug-ins. Test on both Android and iOS devices before launch.
8. Check: the overall quantity of text entry must be lowered
Typing on a small screen is slow and error-prone. Reduce typing wherever you can:
Ask only for the information you need.
Use dropdowns, checkboxes and selectors where the answers are known.
Use the right input type for each field. web.dev notes that the input type changes which on-screen keyboard the browser shows, for example for email addresses or phone numbers.
Support autofill, so returning customers do not retype addresses. web.dev explains how the autocomplete attribute helps users enter data faster and avoid re-entering it.
The checkout is where this matters most; our article on checkout page optimisation has more practical tips.
9. Try to stay away from pop-up windows
Pop-ups are harder to close on a phone and hide the content visitors came for. Google's Search Central guidance describes intrusive interstitials and dialogs as page elements that obstruct users' view of the content, and advises not to obscure the entire page with interstitials. Instead, it suggests banners that take up only a small fraction of the screen, for example for app install prompts or newsletter sign-ups. The guidance makes an exception for legally mandatory dialogs, but even then it recommends overlaying the content rather than redirecting the user to a separate page.
10. If you run a separate mobile site, set up redirects correctly
Google recommends responsive web design because it is the easiest design pattern to implement and maintain: one URL and one set of content for all devices. Some sites still run a separate mobile site on its own URLs (often called m-dot). If you do:
redirect each desktop page to its equivalent mobile page, not to the mobile home page; Google's documentation warns that if different URLs redirect to the same URL on mobile devices, all these pages will be missing from the index after mobile-first indexing is enabled;
follow the additional best practices for separate URLs in Google's mobile-first indexing documentation;
plan a move to responsive design when you next rebuild or redesign the site.
11. Give users the full content on mobile
Older mobile sites often showed a cut-down version with a "view full site" link. With mobile-first indexing, this is a risk: Google's documentation asks that your mobile site contains the same content as your desktop site, with the same headings, structured data, titles and meta descriptions, and the same alt text for images. You can still adapt the design for small screens, for example by moving content into accordions or tabs, as long as the content is equivalent.
What's More?
Many shoppers now discover and buy from online stores on their phones, so mobile optimisation is part of running an ecommerce business, not a one-off project. It works for both established businesses and start-ups, and it usually pays to fix the templates customers use most: product pages, cart and checkout.
Mobile optimisation often happens as part of a wider rebuild. On the Richter Gabelstapler project, a family-run B2B exporter of used forklifts in Germany, Dinarys migrated the store from Magento 1.7 to Magento 2.0 in four months and used a B2B-tailored, mobile-friendly predesigned theme. The case page reports 62% more mobile traffic and 25% faster loading after the project; these are the case page's own figures, not a promise for other stores.
If your store is slow or hard to use on a phone, start with the audit table above. If you want help, our ecommerce performance optimisation and UX audit services cover speed and usability checks, and if you are considering an app as well as a mobile site, our comparison of Flutter and PWA explains the options. You can contact us at Dinarys to discuss your website project.
You may share this article
Lassen Sie Profis Ihre Herausforderung meistern
Unsere zertifizierten Spezialisten finden die optimale Lösung für Ihr Unternehmen.