How does temperature compensation work for strain gauge in wheatstone bridge
A real 4 element strain gauge is designed to have compensation like this: -



As you should be able to see, the temperature compensation "modifies" the gain of "both paths" in the bridge because it is in series with the excitation voltage/current. That's how temperature compensation works on a real device whether it is full-bridge or half-bridged active elements.