FPS arms animation with ik

I am creating an FPS project currently.

I downloaded animations from Mixamo and am also using Unity’s animation rigging tool to snap the arms onto my weapon. To have my hands follow my gun recoil (which is procedurally generated), I used a 2 bone IK constraint for my arm model to follow it. Now the arm model animations are overriden by the constraint, and my run and idle animations of the arm aren’t showing due to it being forced onto my gun’s position.

Is there a way for my gun to follow the arm models when idle/running but also my arm model to follow my gun when shooting (eg the recoil)?

I’m not sure if I worded things well so feel free to let me know if I need to clarify anything.
Thanks!