1-How do moderator variables affect the internal validity of an experimental design?

1-How do moderator variables affect the internal validity of an experimental design? 2- What remedies can be done to remove or control for the effect of moderator variables on the internal validity of an experimental design?