the AP stylebook recommends "X, formerly known as Twitter"

I recommend "Twitter, the platform which delusionally refers to itself as X"