You can either go app by app in the notification settings if its just a couple of apps. If not, then use the Focus Assist path that allows you to set automatic rules as per your convenience.
Did this - and it worked. Only downside is I forgot to turn them on at the right moment - as a result, I missed quite a few critical ones. Since then - I started using Focus Assist with personalized notification hours. Never missed any!