You can use Mastodon's filter system to automatically hide posts containing certain words or phrases. The posts can either be hidden behind a warning, or just hidden completely.
Although they're usually used for hiding offensive material, filters can be used for any reason. Some people use temporary filters to avoid spoilers of an upcoming film, others use them to filter out Wordle posts for example.
Filters have lots of options, so I've done a complete guide at:
➡️ https://fedi.tips/filtering-your-timeline-to-hide-posts-on-mastodon/