• Skip to main content
  • Skip to search
  • Skip to select language
MDN Logo
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Web technology for developers
  2. Web APIs
  3. NavigatorUAData
  4. NavigatorUAData.mobile

Table of contents

  • Value
  • Examples
  • Specifications
  • Browser compatibility

NavigatorUAData.mobile

The mobile read-only property of the NavigatorUAData interface returns a value indicating whether the device is a mobile device.

Value

A Boolean, true if this is a mobile device.

Examples

The following example prints the value of mobile to the console.

console.log(navigator.userAgentData.mobile);

Specifications

Specification
User-Agent Client Hints
# dom-navigatoruadata-mobile

Browser compatibility

Found a problem with this page?

  • Edit on GitHub
  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Mar 26, 2022, by MDN contributors

MDN Logo
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

  • MDN on Twitter
  • MDN on Github

Mozilla

  • Mozilla on Twitter
  • Mozilla on Instagram

© 2005-2025 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies