Start Using Focus Modes

If you feel like you have to keep some notifications turned on for school or work-related stuff, you can use Focus Mode instead. Focus Mode on the iPhone works like the Do Not Disturb feature. When it’s turned on, you won’t get notifications from any app or contact unless you make an exception.
The great thing about Focus Modes is that you can create as many as you want for different parts of your life. So you can create a Work Focus Mode for when you’re in the office, and then turn on a Personal Focus Mode, when you’re with your family, so you don’t get distracting notifications from coworkers who don’t respect your boundaries.
You can create as many Focus Modes as you want by going to Settings > Focus. From there, you can create any Focus Mode you want. You can set different Lock Screens and Home Screens so it’s easier to find the apps you need during specific parts of your day.