In the beginning, wake up the screen on your device by pressing the Side button.
Next, swipe upwards from the bottom of the screen to open the Quick Panel.
Now tap on the Do Not Disturb Mode icon to enable the mode.
To disable it tap on the icon again.
Source : hardreset.info