You will have to code it, just like you do with any other screen.
You can use a TinyDB to store the password, but it will be reset if somebody clear your app data.
Also you can hard code it in your blocks, but to change it, you will have to modify the app.
In the first screen of your app, create a password textbox.
If you choose to store the password in a TinyDB, your app will have to check if there's a previously set password, if not, allow to create it.
Allow the user to click a button when done.
When the button is clicked, compare the text in the password textbox with the password stored in the TinyDB, if you chose that method, or with the fixed password string that you want (a simple IF PasswordTextbox1 = "MyPassword" is enough)
If the password entered matches the app password, then go to the next screen. Use a proper method to manage screens like this
http://puravidaapps.com/tribblehunter.php
Try some blocks, and let us know what you came up with.
NOTE: This procedure, is not intended to be a safe method to protect sensitive information, it's only educational, so if you are planning on using it to protect personal information like address, SSN, credit card#, etc. then I don't think App Inventor 2 is the right platform for your app.