In the Focus settings, enable Do Not Disturb or Sleep Focus to silence all notifications on your iPhone at night. In Settings > Focus, select a mode, and enable it for nighttime. It is silent in the calls, alerts and notifications, meaning it blocks them, but allows exceptions of important calls or alerts if need be.