To share and play content directly from the OnePlus smartphone on other compatible devices, such as Smart TVs or Fire TV Sticks, we can connect via Wi-Fi Direct.
This requires both devices to be within range of the same wireless network.
After sending the invitation and verifying the device to be connected, a connection is automatically established.

Android 10 | OxygenOS 10.0
Step 1:  Open the  Settings
Step 2:  Tap on  Wi-Fi & network
Step 3:  Tap on  Wi-Fi
Step 4:  Tap on  Wi-Fi preferences
Step 5:  Tap on  Wi-Fi Direct
Step 6:  Choose an  available device
  1. Open the Settings
  2. Tap on Wi-Fi & network
  3. Tap on Wi-Fi
  4. Tap on Wi-Fi preferences
  5. Tap on Wi-Fi Direct
  6. Choose an available device

OnePlus Instructions