Will swollen gums that don’t hurt heal on their own?

Swollen and painful gums caused by a viral infection may heal on their own, but swollen and painful gums caused by gingivitis or apical inflammation will not heal on their own. Medical treatment is required.
Gums that are swollen due to a viral infection, where the gums are red and swollen not just on a single tooth but all over the mouth, may be considered for systemic antiviral treatment, which can also be done in about two weeks for most patients.
Gums that are swollen and painful due to gingivitis require periodontal scaling and rinsing around the teeth to relieve symptoms. Gums that are swollen and painful due to apical inflammation require root canal treatment of the tooth.
Therefore, the swelling of the gums caused by viral gingivostomatitis can be self-healing, gingivitis or apical inflammation caused by swelling of the gums need to be treated accordingly, you can go to the dentist to see a doctor.