You can do so from the settings on your device.
- On iOS devices
From the home screen > Settings > Do Not Disturb to mute notifications.
You can schedule Do Not Disturb to activate whenever you want, so feel free to use it to mute notifications at night.
Furthermore, on devices running iOS 15 and later versions, from the home screen > Settings > Full Immersion to hand-pick which notifications to mute. - On Android devices
Devices running Android 11 will have digital wellbeing controls to stop notifications at night.
Settings vary depending on your device and OS.
For further information, please look up the FAQ specific to your device.