Nheko is my go-to cross-platform desktop client for Matrix.
To do spoilers:
<span data-mx-spoiler="REASON HERE">Spoilered text</span>
In order to tell this to someone else:
/plain <span data-mx-spoiler="REASON HERE">Spoilered text</span>