Self-similarity criteria in anisotropic flows with viscosity stratification