When it comes to the role of the U.S. Attorney General in "representing the United States in legal matters," there's a bigger question here that is surely worth raising, but the time for it has probably long passed:
What function does the DOJ even serve in prosecuting criminal cases in the first place?
The U.S. Department of Justice didn't even exist until 1870. Before that, Federal crimes were pretty much limited to treason and tax evasion. And the primary function of the U.S. Attorney General was in civil matters like Federal vs. State legal disputes and real estate transactions for Federal lands.
So basically, you want to dictate how the President should perform his job, and how he should conduct himself on social media. That’s the same thing the Democrats have been trying for the past 3+ years. Have fun.