You need a phone screen recorder.
You just search it up on your app store. It's on play store, but I don't know about the other ones.
You need to root your phone though (I dunno what that means.)
I rooted my phone no harm is done. App companies say that to scare people away from all the benefits rooting gives u. What you delete is the limitations your phone has and give you superuser or developer permissions