On the OnePlus smartphone, it is even easier to deactivate or disable the developer options than it is to activate them.
To do this, we simply navigate to the developer options menu and press the top button. After leaving the options, the options are no longer displayed.

Android 10 | OxygenOS 10.0
Step 1:  Open the  Settings
Step 2:  Tap on  System
Step 3:  Tap on  Developer options
Step 4:  Disable the  d  eveloper options
Step 5:  Tap on  Back
  1. Open the Settings
  2. Tap on System
  3. Tap on Developer options
  4. Disable the developer options
  5. Tap on Back

OnePlus Instructions