Stop Arms from moving to the Sides when walking left or right

Can anyone give me a tutorial on how i can make it that my Arm stops moving all the way to the left? I am looking up and down by rotating my Spine, so my Arm stays in the middle when im idling, but when i walk to the left and right the Torso rotates a bit and my Arm follows that motion. Is there a way to make it with IK bones or something? i can’t find any tutorial that worked yet.