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:

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