When we receive a notification of, for example, a WhatsApp message, the OnePlus smartphone screen remains off by default.

If we want the display to be briefly activated when a notification is received, we can set this separately in the inactivity display settings.

Android 10 | OxygenOS 10.0
Step 1:  Open the  Settings
Step 2:  Tap on  Display
Step 3:  Tap on  Ambient display
Step 4:  Enable or disable  New notifications
  1. Open the Settings
  2. Tap on Display
  3. Tap on Ambient display
  4. Enable or disable New notifications

OnePlus Instructions