do the dirty on sb

do the dirty on sb {UK, infml} (treat sb very badly and/or unfairly esp. to be disloyal to sb) — подложить свинью; ~ кинуть; сделать гадость; нагадить кому-л.; навредить; совершить подлость

do a job on sb/sth and do a number on sb/sth (to
damage or harm someone or something )

Example 1: I can't believe you sold your camera to Mark when you knew it was broken. How could you do the dirty on one of your friends like that?

Example 2: I’d never do the dirty on my friends.

Example 3: Dan did a number on Lori
when he went out with Ann.