Really good question Magenta4383009.
I wanted to ask you by blocking the number online you mean from your t-mobile app or from like social media?
I know most Androids already come with a feature where you can block a specific number from calling or texting you.
Not sure about iOS but there should be some 3rd party apps that could allow you to block them.
Manage your T-Mobile account