Cursor not aligning

Noticing that the cursor is not lining up with where is should be. I would estimate it displays down and to the right about 3 mm from where it should be.

This is a new issue now that I am using Team Viewer to operate a new Mac Mini. Apple M4 Sequoia 15.1.1 from an old iMac 12,2 Intel Core i5 with Ubuntu 24.04.1 LTS.

Previously with the same Linux set up I was working on another iMac, I think with Catalina OS, sorry I no longer have access to it, so I can't say for certain, but an old OS. There was no cursor alignment problem.

Is there a fix?