Use Do Not Disturb with Focus on your iPhone or iPad and change your Do Not Disturb settings
With Focus in iOS 15 and iPadOS 15 or later, you can use Do Not Disturb to silence calls, alerts, and notifications that you get while your device is locked. You can also schedule Do Not Disturb and allow calls from certain people.
When you have Do Not Disturb turned on, a crescent moon icon appears in the status bar and on your Lock Screen.