The best way to silence notifications on your iPhone at night is by using Focus Modes, specifically the Sleep Focus (or by customizing a "Do Not Disturb" Focus).
To silence notifications on your iPhone at night, enable **Do Not Disturb** or **Sleep Mode** in Settings or Control Center. You can also schedule these modes for specific times.