Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Inspect Element on Android (Chrome & Firefox)

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can inspect element on Android, and the quickest way is to use Chrome's built-in developer tools. Open the page in Chrome, tap the three-dot menu, select More tools > Show page source to view the raw HTML, or connect your phone to a computer via USB to use the full desktop DevTools. For a more interactive on-device experience, Firefox for Android lets you inspect elements directly without a computer. This guide covers both methods, plus how to use the remote debugging feature in Chrome.

What You'll Need

  • An Android phone or tablet (Android 5.0 or newer recommended).
  • Chrome or Firefox for Android installed from the Google Play Store.
  • For the remote debugging method: a computer (Windows, Mac, or Linux) with Chrome or Edge installed, and a USB cable.
  • USB debugging must be enabled on your phone (explained in Step 2 of the remote method).

Step-by-Step

Method 1: View Page Source in Chrome (No Computer)

  1. Open Chrome on your Android phone.
  2. Navigate to the webpage you want to inspect.
  3. Tap the three-dot menu (⋮) in the top-right corner.
  4. Scroll down and tap More tools.
  5. Tap Show page source. A new tab opens with the raw HTML source code.
  6. You can scroll through the code, but you can't click on elements to see their styles or properties. This is a read-only view.

Method 2: Inspect Elements on the Phone with Firefox (No Computer)

  1. Install Firefox for Android from the Google Play Store if you don't have it.
  2. Open Firefox and go to the webpage you want to inspect.
  3. Tap the three-dot menu (⋮) in the top-right corner.
  4. Tap Tools (or More tools on some versions).
  5. Tap Inspect (or Web Developer > Inspect). The page will split into two panels: the top shows the page, the bottom shows the HTML.
  6. Tap on any element in the HTML panel. The corresponding element on the page will be highlighted. You can also tap the element on the page to see its code.
  7. Use the tabs at the bottom of the inspector to view styles, layout, and other properties.

Method 3: Remote Debugging with Chrome on a Computer (Full DevTools)

  1. On your Android phone, go to Settings > About phone and tap Build number seven times until you see a message that developer mode is enabled. Enter your PIN if prompted.
  2. Go back to Settings > System > Developer options (the path may vary slightly by device – look for “Developer options” in your main settings).
  3. Enable USB debugging.
  4. On your computer, open Chrome (or Edge, which uses the same DevTools).
  5. Connect your phone to the computer with a USB cable.
  6. On your phone, a prompt may appear asking to allow USB debugging. Tap Allow.
  7. In Chrome on your computer, type chrome://inspect in the address bar and press Enter.
  8. Under “Devices,” you should see your phone listed. If not, make sure the phone is unlocked and the cable is working.
  9. Find the webpage you want to inspect in the list of open tabs on your phone. Click Inspect next to it.
  10. A new DevTools window opens on your computer, showing the live page from your phone. You can now use all the familiar developer tools: inspect elements, edit CSS, run JavaScript, and more.

Common Mistakes

  • Not enabling USB debugging correctly: If you skip the “Build number” taps, the Developer options menu won't appear.
  • Using an incompatible browser: The “Show page source” option is only in Chrome, and the on-device inspector is only in Firefox. Other browsers may not have these features.
  • Expecting full DevTools on the phone: Chrome's “Show page source” is just a text view – you can't edit or click elements. For that, you need Firefox or remote debugging.
  • Forgetting to unlock the phone during remote debugging: The computer won't see the phone if the screen is locked.

Tips

  • In Firefox's inspector, you can tap the “Select” icon (a square with a cursor) to tap an element directly on the page and see its code.
  • When using remote debugging, you can also inspect elements on the phone's browser by opening the page in Chrome on the phone first, then clicking “Inspect” next to that tab in the computer's chrome://inspect page.
  • Use the “Elements” panel in DevTools to edit CSS live – changes are temporary and reset on refresh, perfect for testing.
  • If you're a developer, consider using a bookmarklet like “View Source” to quickly see source code in any browser.

Troubleshooting

Remote debugging doesn't show my phone

  • Make sure USB debugging is enabled (check Developer options).
  • Try a different USB cable – some cables only charge and don't transfer data.
  • On the phone, when you connect the USB, you may need to change the USB mode from “Charging” to “File Transfer” (or “MTP”). Pull down the notification shade and tap the USB notification to change it.
  • Restart both the phone and the computer, then try again.

Firefox's Inspect option is missing

  • Make sure you're using the latest version of Firefox from the Play Store.
  • On some versions, the menu may be labeled “Web Developer” instead of “Tools.”
  • If you still can't find it, try the remote debugging method with Chrome – it's more reliable.

Page source is blank or not loading

  • Some websites block view-source, or the page is heavily scripted. Try a different page to see if it's site-specific.
  • Clear Chrome's cache and reload the page.

Frequently Asked Questions

Can I inspect element on Android without a computer?

Yes. Use Firefox for Android – it has a built-in inspector that lets you view and tap elements directly on the phone. Chrome only offers a read-only “Show page source” view.

Is there a way to edit HTML on Android?

Yes, with Firefox's inspector you can tap an element and edit its attributes or text. Changes are temporary and reset on page reload. For more advanced editing, use remote debugging with a computer.

Does inspecting element work on any website?

Most websites, but some may block view-source or have obfuscated code. You can still see the HTML, but it might be minified or hard to read.

Can I use Safari's Web Inspector on Android?

No, Safari is not available on Android. Use Chrome or Firefox, or remote debugging with Chrome on a computer.

Will inspecting element let me change the page permanently?

No. Changes are only visible to you and are lost when you refresh or leave the page. To make permanent changes, you'd need to edit the website's server-side code, which you don't have access to.

Is there a way to inspect element in a third-party app (like a game)?

No, the methods above only work in web browsers. To inspect app UI, you'd need specialized tools like Android Studio's Layout Inspector, which requires a computer and developer setup.