If you mean around the legs of FETs, it's just an extra measure to prevent dust buildup between the pins which can cause a short or arcing. Usually more so around the PFC FETs as these operate at a higher voltage. You also might commonly see isolation slots between the pins as well. If you see the glue on other components like caps or inductors, it's mostly for structural support.