iPhone notifications have got new features on the iOS 15, you can temporarily mute notifications for one hour or one day depending on what you choose. Slide a notification from the app you wish to mute carefully right to left to display Options and Clear.
Choose Options from the menu that appears.