This page provides an overview of some of the main techniques needed to design web sites that work well on mobile devices. If you're looking for information on Mozilla's Firefox OS project, see the Firefox OS page. Or you might be interested in details about Firefox for Android.

Firefox for Android. Fenix (internal codename) is the all-new Firefox for Android browser, based on GeckoView and Mozilla Android Components. Note: The team is currently experiencing heavy triage and review load, so when triaging issues, we will mainly be looking to identify S1 (high severity) issues. Mozilla VPN lets you change your phone or computer’s location to one of 750+ servers in more than 30 countries. Protect up to 5 devices Your subscription gets you unlimited access to our secure VPN service on your smartphone, tablet and desktop for iOS, Android, Mac. Mobile browser for Indonesia, India, The Philippines, and Thailand. Firefox Reality. Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.

We've organized it into two sections, designing for mobile devices and cross-browser compatibility. Also see Jason Grlicky's guide to mobile-friendliness for web developers.

Designing for mobile devices

Mobile devices have quite different hardware characteristics compared with desktop or laptop computers. Their screens are usually smaller, obviously, but they also usually automatically switch the screen orientation between portrait and landscape mode as the user rotates the device. They usually have touch screens for user input. APIs like geolocation or orientation are either not supported on desktops or are much less useful, and these APIs give mobile users new ways to interact with your site.

Working with small screens

Responsive Web Design is a term for a set of techniques that enables your web site to adapt its layout as its viewing environment — most obviously, the size and orientation of the screen — changes. It includes techniques such as:

  • fluid CSS layouts, to make the page adapt smoothly as the browser window size changes
  • the use of media queries to conditionally include CSS rules appropriate for the device screen width and height

The viewport meta tag instructs the browser to display your site at the appropriate scale for the user's device.

Working with touch screens

To use a touch screen you'll need to work with DOM Touch events. You won't be able to use the CSS :hover pseudo-class, and will need to design clickable items like buttons to respect the fact that fingers are fatter than mouse pointers. See this article on designing for touch screens.

You can use the pointer or any-pointer media query to load different CSS on a touch-enabled device.

Optimizing images

To help users whose devices have low or expensive bandwidth, you can optimize images by loading images appropriate to the device screen size and resolution. You do this in CSS by querying for screen height, width, and pixel ratio.

You can also make use of CSS properties to implement visual effects like gradients and shadows without images.

Mobile APIs

Finally, you can take advantage of the new possibilities offered by mobile devices, such as orientation and geolocation.

Cross-browser development

Write cross-browser code

To create web sites that will work acceptably across different mobile browsers:

  • Try to avoid using browser-specific features, such as vendor-prefixed CSS properties.
  • If you do need to use these features, check whether other browsers implement their own versions of these features, and target them too.
  • For browsers that don't support these features, provide an acceptable fallback.

For example, if you set a gradient as a background for some text using a vendor-prefixed property like -webkit-linear-gradient, it's best to include the other vendor-prefixed versions of the linear-gradient() property. If you don't do that, at least make sure that the default background contrasts with the text: that way, the page will at least be usable in a browser which is not targeted by your linear-gradient rule.

See this list of Gecko-specific properties, and this list of WebKit-specific properties, and Peter Beverloo's table of vendor-specific properties.

Using tools like CSS Lint can help find problems like this in code, and preprocessors like SASS and LESS can help you to produce cross-browser code.

Take care with user agent sniffing

It's preferable for web sites to detect specific device features such as screen size and touch screens using the techniques listed above, and adapt themselves accordingly. But sometimes this is impractical, and web sites resort to parsing the browser's user agent string to try to distinguish between desktops, tablets, and phones, to serve different content to each type of device.

If you do this, make sure your algorithm is correct, and you aren't serving the wrong type of content to a device because you don't understand a particular browser's user agent string. See this guide to using the user agent string to determine device type.

Test on multiple browsers

Test your web site on multiple browsers. This means testing on multiple platforms — at least iOS and Android.

  • test mobile Safari on the iPhone using the iOS simulator
  • test Opera and Firefox using the Android SDK. See these additional instructions for running Firefox for Android using the Android emulator.

Get the browser that protects what’s important

No shady privacy policies or back doors for advertisers. Just a lightning fast browser that doesn’t sell you out.

Latest Firefox features

  • Picture-in-Picture

    Pop a video out of the browser window so you can stream and multitask.

  • Expanded Dark Mode

    Take it easy on your eyes every time you go online.

  • An extra layer of protection

    DNS over HTTPS (DoH) helps keep internet service providers from selling your data.

Do what you do online.
Firefox Browser isn’t watching.

How Firefox compares to other browsers

Get all the speed and tools with none of the invasions of privacy. Firefox Browser collects so little data about you, we don’t even require your email address to download. That’s because unlike other browsers, we have no financial stake in following you around the web.

Compare Firefox to:
Blocks third-party tracking cookies by default
Autoplay blocking
Blocks social trackers
OS availability
In-browser screenshot tool
Primary password

We block the ad trackers. You explore the internet faster.

Ads are distracting and make web pages load slower while their trackers watch every move you make online. The Firefox Browser blocks most trackers automatically, so there’s no need to dig into your security settings.

Firefox is for everyone

Available in over 90 languages, and compatible with Windows, Mac and Linux machines, Firefox works no matter what you’re using or where you are. Make sure your operating system is up to date for the best experience.

Put Firefox on all your devices

Take your privacy with you everywhere. Firefox Browsers for iOS and Android have the same strong privacy settings to block trackers from following you around the web, no matter where you are.

Do it all with Firefox

Search smarter, faster

  • Search from address bar
  • Search engine options
  • Smart search suggestions
  • Bookmark, history and open tab in results

Boost your productivity

  • Works with Google products
  • Built-in screenshot tool
  • Bookmarks manager
  • Autosuggest URLs
  • Sync across devices
  • Reader mode
  • Spell check
  • Pinned Tabs

Stream, share and play

  • Block Autoplay of video & audio
  • Picture-in-Picture
  • Curated content on new tab
  • Share links

Protect your privacy

  • Third Party Cookie Blocking
  • Cryptominer Blocking
  • Private Browsing mode
  • Individual protections report
Mozilla mobile browser

Secure your personal info

  • Breached website alerts
  • Built-in password manager
  • Clear history
  • Form autofill
  • Automatic updates

Customize your browser

  • Themes
  • Dark mode
  • Library of extensions
  • Adjust search bar settings
  • Change new tab layout

Make Firefox your own

  • Extensions for every interest

    From security to news to gaming, there’s an extension for everyone. Add as many as you want until your browser is just right.

  • Change up your look

    Go from light mode to dark mode depending on your mood or preference, or liven things up with a custom theme (rainbow unicorn, perhaps).

  • Tweak your settings

    There’s no need to settle. Change up the new tab page, search bar, bookmarks and more to explore the internet the way you want.

Firefox Download From Microsoft Store

Backed by the non-profit that puts people first

Challenging the status quo since 1998

Firefox was created by Mozilla as a faster, more private alternative to browsers like Internet Explorer, and now Chrome. Today, our mission-driven company and volunteer community continue to put your privacy above all else.

Your privacy comes first

As the internet grows and changes, Firefox continues to focus on your right to privacy — we call it the Personal Data Promise: Take less. Keep it safe. No secrets. Your data, your web activity, your life online is protected with Firefox.

Keep all your favorite browser features — and discover new ones.

Works with Google products

All your favorite Google tools (like Gmail and Docs) work seamlessly in the Firefox Browser.

Facebook Container

Download this browser extension to stop Facebook (and Instagram) from tracking you around the web.

Sync your devices

Firefox is available on all your devices; take your tabs, history and bookmarks with you. All you need is a Firefox account.

Screenshots

Grab a high-resolution image of anything online with our screenshot tool built right in the browser

Enhanced Tracking Protection (ETP)

Firefox automatically blocks many third party trackers from collecting and selling your web activity.

Picture-in-Picture

From watching a web tutorial to keeping an eye on your favorite team, your video follows you while you multitask.

Questions? Mozilla support has you covered.

Firefox Browser

Get Firefox Browser for Android

Mozilla Mobile Download

Get Firefox Browser for iOS

Mobile

Mozilla Mobile Browser

Download the Firefox mobile browser for automatic protection on all your devices.

Learn about the Firefox desktop browser below

You’ve already got the browser. Now get even more from Firefox.

Watch for hackers with Firefox Monitor, protect passwords with Firefox Lockwise, and more.

Mozilla Mobile Apk

Mozilla mobile

Mozilla Mobile Github

Meet our family of products