You will have accomplished this task if you do not use other unlocking methods and use a long and strong password to unlock your device.
Swipe patterns can be observed under certain circumstances. You should therefore avoid them and use a strong password instead. This way, you can effectively prevent people from rummaging through your data or installing unwanted apps.
If you are politically active, you have an increased risk of searches or confiscations. A strong password to unlock your device can be an effective protection against unwanted reading of data.
Migrants or people on the run sometimes have their phones taken away by the authorities. A strong password is an effective protection against unwanted reading of data.
Using long passwords in the form of short sentences is a very secure method of unlocking your device. The method is more secure than patterns and more secure than biometric features. However, it is also the most time-consuming method as it takes longer to unlock. Over time, however, you will become much faster.