I use iTunes and use iOS 18.2
Here's what worked for me on two different computers.
It allowed me to use iPhone to connect to Windows 11 over USB.
PRECONDITION my USB 2.0 cable to connect iPhone Ethernet connection to computer is already plugged in on USB side but dangling and disconnected from iPhone at lightning connector.
- Went to W11 Settings app\Bluetooth devices"View more devices" URL\ scroll to bottom and view "Other Devices"
...THEN deleted all instances of my iPhone - Went to W11 Settings app\Network & internet to watch what happens as I plug-in my iPhone
- While viewing "Network & internet," I enable HOTSPOT on my iPhone and then physcially plug-in wire INTO iPhone
- I watch what happens as I am viewing the phone (Ethernet 2 on one computer and Ethernet 4 on another computer) connect. RESULT: Success!
HTH. YMMV.
NOTE there was nothing about "Trust this computer?" thankfully when I plugged my iPhone in.
It went straight to Ethernet connection