Infinite Y- Rotation without hindrance by the axis poles?

Is there a way to make the mouse controls of a flying ship go to any direction, especially up and down, without limitations? It gets stuck in the upper / lower pole and then flips over in the ugliest way, flying upside-down or crooked, then it’s hard to revert it again.

This is the current mouse setup. At best, it should be in a way that when you drag the mouse back, the ship should fly a looping and fly any way the player wants without being hindered by the poles.

Fixed in the meantime - I used AddLocalRotation instead of AddRelativeRotation.