I recently read that a virtual photon has mass, unlike a real photon.
"As a consequence, a real photon is massless and thus has only two polarization states, whereas a virtual one, being effectively massive, has three polarization states." https://en.wikipedia.org/wiki/Virtual_particle
"In that theory, the mass of electrons (or, more generally, leptons) is modified by including the mass contributions of virtual photons, in a technique known as renormalization." https://en.wikipedia.org/wiki/Photon
So here is my question: how does a virtual photon get its mass?
Does it acquire its mass through interaction with the Higgs Field, like $W$ and $Z$ bosons, or is its mass generated in another way?