I had to move the lamp mount position a little in a former rental apartment. This is just one of the solution I used. It can be used with the lid to cover the old outlet or without the lid under the lamp base with of course some adjustments on the diameter etc.
The author marked this model as their own original creation.