For months amid the ongoing pandemic, the president attended crowded rallies and was rarely seen wearing a mask as recommended by health officials.