Use the Focus mode in iOS 15’s Settings app
Apple’s Do Not Disturb has become a welcome feature over the years but if you want to have greater control over your notifications, it has now been enhanced with new customisation options. There’s also a new Focus mode. It lets you filter notifications according to what you’re doing at various stages of the day, allowing you to focus.