Pressing the Wifi/Bluetooth Icon in control center will disconnects your iPhone from any accessory it's connected to, except for Apple Watch, Instant Hotspot, Apple Pencil, and Continuity features, like Handoff.
Please refer to https://support.apple.com/en-in/HT208086