How can I use Safari to inspect a webview in an iOS app running on an Apple

I installed my iOS app on m1 pro with a developer certificate, there is a webview in it, and I also turned on debug mode. On my iPhone, by connecting the data cable, I can use Safari for webview debugging. I want to save the connection of the data cable and run it directly on the chip macOS of the arm version. Is that possible?