To enable the auto-lock feature for your wallet, you can follow the below steps:
Click on the Hamburger menu in the top-left corner of your screen.
Select General security under the security group.
Now, click on the auto-lock timer.
Select the duration from the given list to auto-lock your Compass wallet