Double monitor toutch problem

Hello everyone.
I have two LCD screens connected to RPI5. The first with touch, the second without. Resolutions of both are correctly detected by the KMS driver. The problem is that the touch is extended to both monitors. It means, when you touch the right side of the first screen, the cursor moves to the right side of the second screen. After disconnecting the second monitor, everything is fine. Generally, I want use hdmi2 connector as a audio output connected to AVR .
Please for help.

Unfortunately, I have an ugly solution to my problem.
I use the “xrandr” command to set the resolution of the second one to the same resolution as the first display have (1024x600 px).
So I create script file /usr/bin/mirrorhdmi.sh :

#!/bin/bash
bootTerminated=0
while [ $bootTerminated -eq 0 ]
do
logFilter=sudo journalctl -t volumio | grep "BOOT COMPLETED"
if [ -z “$logFilter” ]
then
sleep 1
else
bootTerminated=“1”
fi
done
sudo -u volumio xrandr -display :0.0 --output HDMI-2 --mode 1024x600 --rate 60
sudo -u volumio xrandr -display :0.0 --output HDMI-2 --same-as HDMI-1

and run it as a service. Configuration file is here: /lib/systemd/system/mirrorhdmi.service and it looks like that:

[Unit]
Description=HDMImirror
After=network.target
After=local-fs-pre.target

[Service]
Type=oneshot
User=root
ExecStart=/bin/bash /usr/bin/mirrorhdmi.sh

[Install]
WantedBy=multi-user.target

At the and of all I only enable service:

systemctl enable mirrorhdmi.service

Maybe someone has a nicer solution. In my example, the resolution change takes place about 20 seconds after starting the Touch Display plug-in. This is a bit irritating