can occur in any mouth infection or sores.
Swelling of gums in gingivitis
and if it is painful it may be related to vigorous brushing.
Dots on lips suggest epithelial damage which often occurs in apthous. Ulcers due to viral fever
When the dots are white capped... it doesnot mean that body is trying to control infection and may heal as it gets painless as it turns white.
There are simple medicines that help in rapid cure... but often these issues donot last more than a week unless a serious reason .