idiom
in the wrong
ser responsable de un error o situación mala.
Meaning
to be responsible for a mistake or bad situation.
Example
He knew he was **in the wrong** for shouting at her.
Él sabía que estaba equivocado por gritarle.