IPhones XR screen record won’t record sound even with mic and ringer on?

Hello I have a iPhone XR and I’m trying to use my screen recorder but non of my videos I screen record has sound I make sure my mic is on and my ringer but nothing! My videos still has no sound please can anyone help me