If it weren't for your space limitations, I would suggest using a thick slab of glass of the appropriate refractive index (as high as possible).
You could use two in sequence, each rotating about its own axes. i.e. rotate slab 1 along x axis, rotate slab 2 along y axis, send beam along z axis...