Ophthalmic devices and systems for treating dry eye are described. An ophthalmic device includes a housing having a convex anterior surface and a concave posterior surface and a thermal regulator disposed therein. In an example, the thermal regulator includes a heating element positioned to heat the convex anterior surface. In an example, the thermal regulator includes a cooling element positioned to cool the concave posterior surface. The convex anterior surface is shaped to contact a portion of conjunctiva of an eye adjacent to Meibomian glands of the eye, such as the palpebral conjunctiva, when the ophthalmic device is mounted to the eye. The concave posterior surface is shaped to contact a portion of the conjunctiva adjacent to scleral nerves of the eye, such as the bulbar conjunctiva, when the ophthalmic device is mounted to the eye.