How to Inspect Element on Your iPhone?

wp:image {“id”:12385,”sizeSlug”:”large”,”linkDestination”:”media”}

/wp:image
wp:paragraph

Inspecting elements on an iPhone may seem tricky since mobile browsers do not have built-in developer tools like desktop versions. However, there are methods you can use to analyze web page elements on an iPhone. Whether you are a developer troubleshooting a website or just curious about how a webpage is structured, various options allow you to inspect elements. Below is a detailed manual explaining different techniques to achieve this.

/wp:paragraph
wp:heading

Using Safari Developer Tools on macOS

/wp:heading
wp:image {“id”:12395,”sizeSlug”:”full”,”linkDestination”:”media”}

/wp:image
wp:paragraph

If you own a Mac, Apple provides a built-in tool to inspect webpage elements on an iPhone. You can utilize the Safari Developer Tools for this process.

/wp:paragraph
wp:heading {“level”:4}

Steps to Enable Web Inspector on iPhone

/wp:heading
wp:list {“ordered”:true}

    wp:list-item

  1. Activate Developer Mode on Mac: wp:list
      wp:list-item

    • Open Safari on your Mac.
    • /wp:list-item
      wp:list-item

    • Go to “Preferences” and select the “Advanced” tab.
    • /wp:list-item
      wp:list-item

    • Check the box labeled “Show Develop menu in the menu bar.”
    • /wp:list-item

    /wp:list

  2. /wp:list-item
    wp:list-item

  3. Enable Web Inspector on iPhone: wp:list
      wp:list-item

    • Launch “Settings” on your iPhone.
    • /wp:list-item
      wp:list-item

    • Scroll to “Safari” and select it.
    • /wp:list-item
      wp:list-item

    • Tap “Advanced.”
    • /wp:list-item
      wp:list-item

    • Toggle on “Web Inspector.”
    • /wp:list-item

    /wp:list

  4. /wp:list-item
    wp:list-item

  5. Connect iPhone to Mac: wp:list
      wp:list-item

    • Use a USB cable to link your iPhone to the Mac.
    • /wp:list-item
      wp:list-item

    • Open Safari on your Mac and visit the website you want to inspect on your iPhone.
    • /wp:list-item

    /wp:list

  6. /wp:list-item
    wp:list-item

  7. Inspect the Elements: wp:list
      wp:list-item

    • Click “Develop” in Safari’s menu bar.
    • /wp:list-item
      wp:list-item

    • Select your connected iPhone from the dropdown list.
    • /wp:list-item
      wp:list-item

    • The website displayed on your iPhone will now be accessible through Safari’s Developer Tools on your Mac.
    • /wp:list-item
      wp:list-item

    • You can inspect elements, check styles, and debug scripts.
    • /wp:list-item

    /wp:list

  8. /wp:list-item

/wp:list
wp:heading

Using Third-Party Apps

/wp:heading
wp:paragraph

For those without access to a Mac, third-party applications provide an alternative way to inspect elements on an iPhone.

/wp:paragraph
wp:heading {“level”:4}

1. Using Inspect Browser

/wp:heading
wp:image {“id”:12396,”sizeSlug”:”large”,”linkDestination”:”media”}

/wp:image
wp:paragraph

The Inspect Browser app allows users to view and modify a webpage’s elements on an iPhone.

/wp:paragraph
wp:list

    wp:list-item

  • Download and install Inspect Browser from the App Store.
  • /wp:list-item
    wp:list-item

  • Open the app and enter the URL of the webpage.
  • /wp:list-item
    wp:list-item

  • Tap and hold any section of the page to inspect the underlying elements.
  • /wp:list-item
    wp:list-item

  • Modify HTML or CSS in real time to preview changes.
  • /wp:list-item

/wp:list
wp:heading {“level”:4}

2. Using DevTools App

/wp:heading
wp:image {“id”:12397,”sizeSlug”:”large”,”linkDestination”:”media”}

/wp:image
wp:paragraph

Another reliable option is DevTools – Inspect Elements, which offers features similar to browser developer tools on a desktop.

/wp:paragraph
wp:list

    wp:list-item

  • Install DevTools from the App Store.
  • /wp:list-item
    wp:list-item

  • Launch the app and go to the desired webpage.
  • /wp:list-item
    wp:list-item

  • Use the built-in inspector to examine page elements and test different modifications.
  • /wp:list-item

/wp:list
wp:heading

Using Remote Debugging in Google Chrome

/wp:heading
wp:image {“id”:12398,”sizeSlug”:”large”,”linkDestination”:”media”}

/wp:image
wp:paragraph

For those who prefer Chrome, remote debugging can be performed using a desktop.

/wp:paragraph
wp:heading {“level”:4}

Steps to Enable Remote Debugging

/wp:heading
wp:list {“ordered”:true}

    wp:list-item

  1. Install Chrome on Both Devices wp:list
      wp:list-item

    • Ensure you have Google Chrome on your iPhone and desktop (Mac or Windows).
    • /wp:list-item

    /wp:list

  2. /wp:list-item
    wp:list-item

  3. Enable Web Inspector on iPhone wp:list
      wp:list-item

    • Open Safari settings on your iPhone.
    • /wp:list-item
      wp:list-item

    • Enable Web Inspector under the Advanced section.
    • /wp:list-item

    /wp:list

  4. /wp:list-item
    wp:list-item

  5. Connect iPhone to Computer wp:list
      wp:list-item

    • Use a USB cable to link your iPhone to the computer.
    • /wp:list-item
      wp:list-item

    • Open Chrome on the computer.
    • /wp:list-item
      wp:list-item

    • Type chrome://inspect into the Chrome address bar and hit Enter.
    • /wp:list-item

    /wp:list

  6. /wp:list-item
    wp:list-item

  7. Start Debugging wp:list
      wp:list-item

    • Locate your iPhone under “Devices.”
    • /wp:list-item
      wp:list-item

    • Click “Inspect” next to the webpage open on your iPhone.
    • /wp:list-item
      wp:list-item

    • Chrome’s Developer Tools will now show the web elements.
    • /wp:list-item

    /wp:list

  8. /wp:list-item

/wp:list
wp:heading

Bookmarklets for Inspecting Elements

/wp:heading
wp:image {“id”:12399,”sizeSlug”:”large”,”linkDestination”:”media”}

/wp:image
wp:paragraph

Another simple way to inspect elements on an iPhone is by using bookmarklets. These are small JavaScript snippets saved as browser bookmarks.

/wp:paragraph
wp:heading {“level”:4}

Steps to Use Bookmarklets

/wp:heading
wp:list {“ordered”:true}

    wp:list-item

  1. Open Safari on your iPhone and bookmark any page.
  2. /wp:list-item
    wp:list-item

  3. Tap the “Edit” option for the bookmark.
  4. /wp:list-item
    wp:list-item

  5. Replace the URL with this JavaScript snippet:
    javascript:(function() { var script = document.createElement(‘script’); script.src = ‘https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js’; document.body.appendChild(script); })();
  6. /wp:list-item
    wp:list-item

  7. Save the bookmark and open any webpage.
  8. /wp:list-item
    wp:list-item

  9. Tap on the bookmarklet, and it will inject JavaScript to allow inspection.
  10. /wp:list-item

/wp:list
wp:heading

Using Online Tools for Inspection

/wp:heading
wp:paragraph

If installing an app is not an option, online tools can be used to inspect web pages.

/wp:paragraph
wp:heading {“level”:4}

1. DebugBear

/wp:heading
wp:image {“id”:12400,”sizeSlug”:”full”,”linkDestination”:”media”}

/wp:image
wp:list

    wp:list-item

  • Open Safari or Chrome on your iPhone.
  • /wp:list-item
    wp:list-item

  • Visit debugbear.com/labs.
  • /wp:list-item
    wp:list-item

  • Enter the webpage URL and analyze the elements.
  • /wp:list-item

/wp:list
wp:heading {“level”:4}

2. BrowserStack Live

/wp:heading
wp:image {“id”:12401,”sizeSlug”:”full”,”linkDestination”:”media”}

/wp:image
wp:list

    wp:list-item

  • Sign up for BrowserStack Live.
  • /wp:list-item
    wp:list-item

  • Launch a remote browser session.
  • /wp:list-item
    wp:list-item

  • Access and inspect webpages on an iPhone simulation.
  • /wp:list-item

/wp:list
wp:heading

Editing Webpage Elements Using Safari’s Reader Mode

/wp:heading
wp:image {“id”:12402,”sizeSlug”:”large”,”linkDestination”:”media”}

/wp:image
wp:paragraph

While Safari’s built-in tools are limited, Reader Mode allows users to modify temporarily.

/wp:paragraph
wp:list

    wp:list-item

  • Open Safari and visit a webpage.
  • /wp:list-item
    wp:list-item

  • Tap the “aA” icon in the address bar.
  • /wp:list-item
    wp:list-item

  • Select “Show Reader View” to see a simplified page version.
  • /wp:list-item
    wp:list-item

  • Modify text or styles using accessibility settings.
  • /wp:list-item

/wp:list
wp:heading

Conclusion

/wp:heading
wp:paragraph

Although iPhones do not have built-in element inspection tools like desktop browsers, several alternative methods can help achieve the same result. Users can efficiently analyze and modify webpage elements using Safari’s Developer Tools, third-party applications, remote debugging, bookmarklets, or online tools. Whether you are a developer debugging a site or simply exploring web structures, these approaches offer practical solutions to inspect elements directly from an iPhone.

/wp:paragraph
wp:gallery {“linkTo”:”file”}

/wp:gallery

Related Articles