You can use Mastodon's "Filters" feature to hide posts containing certain words, phrases, hashtags, links or emoji.
There is lots more information on how to set up filters and what all the different options mean at:
➡️ https://fedi.tips/filtering-your-timeline-to-hide-posts-on-mastodon
Filters can be set to show filtered posts behind a Content Warning, or to hide the posts completely.
They can hide stuff on timelines, notifications, profiles, conversations etc.
They can be permanent or temporary.
@FediTips Filters are a godsend for my sanity! Lol