Change access to items when iPhone is locked
By default, some commonly used features (such as Today View and Control Center) are available when iPhone is locked. (For security, USB connections aren’t allowed when iPhone is locked.) You can change whether any of these items can be accessed from the Lock screen.
Go to Settings > Face ID & Passcode (on an iPhone with Face ID) or Touch ID & Passcode (on an iPhone with a Home button), then select your options.
You can turn access on or off to the following features while iPhone is locked:
Today View (see View and organize Today View on iPhone)
Recent notifications (see View and respond to notifications on iPhone)
Control Center (see Use and customize Control Center on iPhone)
Siri (see Ask Siri on iPhone)
Replying to messages (see Send and receive text messages on iPhone)
Home Control (see A look at Home on iPhone)
Wallet (see Add and manage passes in Wallet on iPhone)
Returning missed calls (see Manage incoming calls on iPhone)
Connecting to a Mac, a Windows PC, or an accessory with USB (such as when you connect iPhone to your computer using USB)