Notifications when talking on the phone

I would like for notifications to be muted if I am actively on the phone. Currently, If I am talking on the phone and a notification happens, it interrupts my call and is insanely LOUD and hurts my ears. Then I’ve missed what the person on the other end of the phone was saying.