enable Reduce Interruptions focus to avoid getting notifications popping up whilst screen recording, or make your own focus that hides all notifs that you don't want (i have one called "Showing Pictures" that hides all except from my parents and emergencies)