Inspecting elements in an android/ios app

Hey can anyone guide me as to how I can inspect an element in an ios or android app? I am new to testing and I know how to automate a website using selenium and inspecting elements via devtools in the browser. How to I do the same for a native android or ios app?

Here’s a tutorial:

https://www.kobiton.com/book/chapter-5-the-appium-inspector-2

You do not need any Appium inspection tool while you test browser. More over most of your tests should run e.g. chrome browser with mobile phone emulation (pure selenium no any Appium).

To inspect e.g. safary browser on iPhone you need Safary browser on mac and phone connected to it. For Android similar but chrome browser.

Just enter in google e.g. inspect Safari browser on phone. First link for me https://help.remo.co/en/support/solutions/articles/63000251570-how-to-activate-the-iphone-debug-console-or-web-inspector-