We consider sequences of elliptic and parabolic operators in divergence form where the operators depend on a family of vector fields. We show, using a unitary approach, i.e., taking suitable ellipticparabolic operators, compactness results with respect to G-convergence, or H-convergence, by assuming the existence of affine functions, with respect to the family of vector fields.