Open Control Center → More features → Record session to record the remote screen to a .webm video file. A red REC indicator shows while recording; click it to stop, then choose where to save.
Control Center → More features: Game mode, File transfer, Chat, Key combinations, Take screenshot, Record session, statistics and clipboard sync.