Step 1: Go to Settings > Digital Wellbeing and Parental Controls > Parental Controls.
Step 2: Enable the Parental Controls toggle.
Step 3: Set up a PIN code and select the apps that you want to restrict.
Step 4: Tap Content filters to select the types of content that you want to block.