If Trump was a soldier, instead of the Commander In Chief
He could be charged with Article 134, (pertaining to self injury) under the Unified Code of Military Justice. Here is a snippet:
For offenses alleging disorders and neglects to the prejudice of good order and discipline (clause 1 offenses) and for offenses alleging conduct of a nature to bring discredit upon the armed forces (clause 2 offenses):
(a) That the accused did or failed to do certain acts; and
(b) That under the circumstances, accuseds conduct was to the prejudice of good order and discipline in the armed forces or was of a nature to bring discredit upon the armed forces.
By failing to follow the CDC guidelines, and, in effect, making himself sick, he could be held responsible to a Court Martial and could be dishonorably discharged from the service, among other possible penalties.
But, he is the Commander in Chief, and therefore above the laws that his troops have to follow....