If you are being investigated for a crime, the police may want to look at your phone. For instance, maybe a police officer is questioning you because they believe you have been selling drugs and controlled substances illegally. They think that you talk to your prospective buyers via text message or social media direct messages, so they want to unlock your phone and read those messages.
The first thing to note is that the police can ask for your consent to unlock the device, but there is no obligation for you to do so. Just because an officer says they want to read your messages does not mean you have to let them do it. They cannot force you to open up the phone and show them those messages, or it would be an illegal search.
They can get a search warrant
However, the police do still have options, starting with the fact that they can get a search warrant. They have to demonstrate probable cause to the judge, showing that there is a valid reason to search your device. The judge can then authorize a search warrant for your phone, and the police can access it without your consent.
The third-party doctrine can also play a role. If you have shared your information with another company, that company can turn the records over to the police. For instance, if you have been sending direct messages on social media, the social media company may give a record of those messages to the officers, even if they never unlock your phone at all.
Criminal charges can have a major impact on your future, and you may have questions about how searches were performed or how evidence was gathered. Take the time to carefully look into all of your legal defense options moving forward.

