Global warming is threatening ectotherms, with strong repercussions on their population dynamics. Body temperature in ectotherm reptiles is crucial to perform all their biological functions, which are maximized within a narrow interval. When faced with new or adverse thermal conditions, reptiles will respond with distributional changes, behavioural adjustments to maintain their internal temperature, or by adapting to the new environment, otherwise, extinctions will occur. Higher temperatures may have negative repercussions, for example, shortening periods of activity, affecting embryo development during gestation or decreasing viability of sperm cells in males. Through behavioural thermoregulation, reptiles can compensate for environmental variations (Bogert effect). Furthermore, according to Janzen’s hypothesis, the physiological cost of responding to adverse thermal conditions will be low in species exposed to higher thermal overlap. Here, we analysed the effect of a change in the thermal regime on sperm cell viability in Sceloporus megalepidurus, a small viviparous lizard from central Mexico. We hypothesized that an active thermoregulator inhabiting temperate mountains is able to prevent the effects of thermal change on sperm cell viability. We found that the change in thermal regime did not modify sperm cell viability, nor does it affect the maturation of sperm cells in the epididymis. Our results support the Bogert effect and suggest that, despite the high temperatures and low thermal quality, S. megalepidurus can maintain its body temperature within an optimal range for sperm cell viability.