It's possible that the screen recording feature has not been enabled in the Control Center. To enable it, go to Settings > Control Center > Customize Controls > then tap the green + button to add "Screen Recording" to the list of controls.