Connect two phones using usb

i want to make app using mit app so when my other phone is coonected to my this phone it will automatically open browser in my phone

how should i do this

I didn't know you could connect two phones with a USB cable, is this new?

Welcome, please explain yourself some more.

using otg we can coonect two phones

when another phones coonects to my phones it automatically opens browser