https://www.law.cornell.edu/uscode/text/36/301


"...(C) all other persons present should face the flag and stand at attention with their right hand over the heart, and men not in uniform, if applicable, should remove their headdress with their right hand and hold it at the left shoulder, the hand being over the heart; ..."

I never knew this existed, either.