To fix a wobbly showerhead or pipe, use expanding foam. This foam secures the pipe in the wall, stopping the wobble.