Broken joysticks

I have a controller with one loose and one semi loose joystick, was wondering if you could fix it?