To turn off restricted mode on TikTok when it's locked, follow these steps:
1. Launch the TikTok app on your device.
2. Tap on the profile icon located at the bottom right corner of the screen, which will open your profile page.
3. In the upper-right corner of your profile page, you'll find a three-dot menu icon. Tap on it to open the settings menu.
4. Within the settings menu, scroll down until you find the "Digital Wellbeing" section. Tap on it.
5. Look for the "Restricted Mode" option in the Digital Wellbeing settings and tap on it. You may need to enter a passcode to proceed, depending on your previous settings.
6. To disable restricted mode, simply toggle the switch to turn it off. If prompted, enter your passcode to confirm your action.
7. Once restricted mode is turned off, you should regain access to content that was previously restricted.
Please note that the steps mentioned above are accurate as of the current information available in 2023. The interface and features might vary based on the current version of the TikTok app and the iOS version being used.