You can block numbers for messages or calls that you don't want to receive using the built-in feature of your phone.
Here's how to block calls and messages on Sony Xperia XA1 Ultra:
Step 1: Tap the three dots on your phone and select the blocked contacts option.
.jpg)
Step 2: Add the phone numbers you want to block.
.jpg)
Step 3: You can unblock numbers that have been blocked.
.jpg)
Now you have completed the setup, wishing you success.
Explore more guidance on Sony Xperia XA1 Ultra here