You can hide incoming messages on your Samsung Galaxy S10 by changing your Notifications preferences, or hide the Messages app with a third-party app.
You can block unwanted text messages on an Android phone by blocking the phone number with just a few taps.