Detect mobile browser via user agent

Helping small and large websites detect and redirect mobile browsers based on their user agent since 2007.

You are NOT using a mobile

Your user agent is
CCBot/2.0 (https://commoncrawl.org/faq/)

Detect mobile browser with PHP

This small yet highly effective PHP script detects mobile phone browsers on your website so you can redirect them to your mobile website or show them a different template. It simply answers the question: is this visitor using a mobile?

PHP code and demo
Detect mobile browser with JavaScript

A small but highly effective JavaScript code recognizes the browser of a smartphone, so that it can be redirected to the mobile website and a mobile template can be displayed.

JavaScript demo

From the Blog

Icons8 API for Mobile Web: The Right Icon Format for Each Screen

December 18, 2025

Phones punish sloppy icons first If you build for mobile browsers, you already know the pattern. Something that looks crisp on a desktop monitor turns

Read More
Productivity Enhancement: Icons8 Custom Cursor Professional Efficiency Tools

September 3, 2025

Workplace performance optimization requires strategic interface modifications that improve user engagement, reduce screen fatigue, and enhance operational efficiency throughout extended computing sessions. Icons8’s cus...

Read More
Most Helpful Figma Plugins 

November 21, 2022

Plug-ins contain great features that could make your workflow more efficient and easy. Each plug-in developer strives to make his plugin work for end users

Read More
Top 11 Icons Sites

November 21, 2022

We ranked and reviewed the top 11 icon sites for finding free or premium icons for any project in accordance with several quality, format, ease

Read More
Want to learn more about online work? Check out this list of 10 great online resources.

August 8, 2022

If you’re interested in learning more about how to find online work, you’re in the perfect place. Going remote gives numerous benefits, including the opportunity

Read More