Typically, your device includes a screenshot or screen recorder feature. For further reference, you can explore the following links:
Take a screenshot on your iPad
Take a screen recording on iPhone
Take a screen recording on iPad
How to take a screenshot on a Samsung phone or tablet
Using the Screen Recorder on my Samsung device