If you are needing it for web dev, the Inspect browser on iOS works great for that purpose. It is annoying you have to pay $10 for something that should be built in.
There is also one called literally "Web Inspector" from "And a Dinosaur" or something which I believe is free and a Safari extension which pops up devtools on my iPhone