Strange change to desktop size
I have a Mac Mini running Big Sur 11.4 driving a HP LA22f screen. I have been using the screen for many years, the Mini for about 18 months and Big Sur for just a week or two.
Tonight, something happened to my desktop. It has enlarged about 1 cm so one side or the other goes just off the screen, likewise top or bottom If I move the cursor to the left, that side is displayed correctly but the right side is off. Likewise if I move to the right, top or bottom. This means all the windows also go off screen and jump around as I move the cursor. The dock can also disappear.
I find this quite disconcerting, and inexplicable. I wasn't adjusting anything at the time, just doing typing in Wordpress. This is definitely not what should be happening, and I'm wondering if anyone has had a similar experience and/or has a solution please. Going into System Preferences and checking the screen size has no effect. Perhaps it is a monitor fault, but if so it is a strange one.
Thank you for any help.