Since updating to BigSur, my airplay (screen mirroring) simply logs me out of my MacBook user account and closes all browsers. I will have to log back in and re-open all the apps I was using. Then, I will simply have to reselect screen mirroring and it will work just fine.