How to better protect your iPhone and iPad against hacks and other security and privacy risks, we could provide some tips for you:
Setup and use a strong password, Touch ID/ Face ID
If you have Touch ID or Face ID on your iPhone or iPad, use it. It's more identity than security, but it provides a good, balanced approach to letting you in while keeping others out.
With 2-step authentication, you will have to enter an app-specific password, or an additional token the first time you set up the service on your device, but it'll make it more than twice as strong for only a minimal amount of extra effort.
Minimize data exposure on your iPhone or iPad Lock screen
For the sake of convenience, Apple allows you to access Notification Center, Wallet, Siri, and Control Center right from your Lock screen. That means you can quickly glance at incoming messages, it also means anyone else within eyeshot or reach can glance at your messages,
If you value those features on your Lock screen, then by all means enjoy their convenience. If security and privacy is more important to you, however, you can turn them all off.
Keep your web browsing, location, social and other data private
Your iPhone and iPad can accumulate a lot of data over time, including data you may not want or need it to accumulate. Likewise, you can grant access to your data to a lot of apps and services over time, including apps and services you may no longer want or need to have access.