One of the buttons in the top right of the viewport can be used to change the gizmo to use object space.
HTH