Safari has a Web Inspector like other browsers, but you won’t find it until you ask for it.
Safari > Settings > Advanced >
Show features for web developers
A Develop menu appears in the menu bar, and the settings window gains Developer and Feature Flags sections. From the menu you can open the inspector to look at elements, the console and network requests.
I’d switch it on even if I mostly build with another browser. Some layout and form problems only show up in Safari, and every iPhone visitor is using the same engine, so guessing from a different browser gets old fast.
Right click an element on a page afterwards and you’ll find Inspect Element in the context menu, which is the quickest way in.
A word of care about Feature Flags: those are experimental switches in the browser engine. Flipping them can break sites in odd ways, and you may not remember which one you touched. Leave them at their defaults unless you’re testing something specific.
Also remember that the desktop Safari is not a perfect stand in for a phone. Screen size, touch and the on screen keyboard behave differently, so test on a real device before you call it fixed.
Further reading: Use the developer tools in the Develop menu in Safari on Mac, Enabling Web Inspector
Going deeper: Guide: run your own search engine with SearXNG and make it the default on your iPhone and Mac