Disable Control Center when the iPhone is locked

Click on Settings

Go to Face ID & Passcode

Learn more

Enter your passcode

Scroll down to the section for “Allow Access When Locked”

Toggle off Control Center.

Learn more
Learn more