Here is a guide on how you can get rid of the notch on top of the screen if you have installed the Android 12 DP1.
Step 1: First of all, open the Settings app on your Pixel smartphone.
Step 2: Now, you will need to enable the Developer options. For this, go to ‘About Phone’ and tap on ‘Build Number’ for five times.
Step 3: Go back to the Android settings > System > Advanced Developer options.
Step 4: Scroll down and tap on ‘Drawing’ section and then tap on ‘Display cutout.’
Step 5: From the options available, click on “Hide” to hide the cutout.
That’s it. Once you have followed the above-mentioned steps, you will see a black bar over the status bar which will be hiding the punch-hole cutout.
Do note that this is different from a similar feature in Pixel 3 XL where hiding the notch shifts the status bar downwards. This feature may be a bit buggy given that it’s a developer build.