Although there’s no dedicated app lock feature on iOS phones, there’s still a way to lock your messages. In your settings, go into “screen time,” set a screen time password and put the time limit at one minute. Then go into the “always allowed” list and remove the exception for the messages app. Now, you’ll need to put in your password to use the app.