I needed to sign an online form as part of the trade-in of my current iPhone 13 Mini, so I selected “Window” in Safari on the Mac and moved the page to my iPad Air 5. There I used the Apple Pencil to provide the signature and the mouse connected to the Mac to finish the process.
It just works…