The phrase
"mirror effect" describes when something or someone reflects the same behavior, emotions, or actions back at you, like a mirror reflecting your image. It suggests that people tend to imitate or respond similarly to the way they are treated, so if you act kindly towards someone, they are likely to be kind in return.
Full definition