For a lens immersed in a medium,
\[
P_{\text{medium}}
=
\frac{\left(\frac{n_l}{n_m}-1\right)}
{(n_l-1)}
\,P_{\text{air}}.
\]
If the medium has a higher refractive index than the lens, the power becomes negative and a convex lens behaves like a concave lens.