You can't make spoilers in Teams, but you can change text colour and highlight colour.
The two best colour combinations for hiding things are highlight colour 5 with text colour 4 (green on green), and yellow on yellow.
If you can figure out how to send those with HTML instructions, you have a spoiler substitute.