Given your description I suspect that you will just need to make a small change to how the displays are arranged in macOS.
Apple describes the 'Arrange' option here -->
https://support.apple.com/guide/mac-...ac-mh40768/mac
And a video that demonstrates the process in general is here -->
https://youtu.be/PZxOHneRTMw?si=rHDiLDF2_T5yhLcU