Is Elon Musk holding government office and owning a social media platform a first amendment violation?

He’s using his ownership to censor criticism and ban users on Twitter while also being a government official; could he be sued to either sell Twitter or resign from his government position?