Huawei p20 pro goes to lock screen when rotated

Hi :)
My phone did not used to do this, but recently when rotated and using Youtube/Netflix/Google Maps/video calling on Facebook Messenger my phone goes to the lock screen instantly. This is pretty frustrating but I can't find anything in my phone settings to fix it. Does anyone have any ideas? Thanks!