@simon and if you want to do this without a Mac, you can use https://github.com/HimbeersaftLP/ios-safari-remote-debug-kit from Windows and Linux; plug in the iphone and you can inspect Safari pages in a (simplified) devtools from a Chrome(ish) browser on the desktop. It's rather more of a faff, annoyingly, but it does work. (There's also https://inspect.dev/ but IIRC you have to have an online account to use it, which I don't like for local apps.)
@sil that's very cool!