Hyperpixel 4 Square - Touch acts as mouse

Hello! I bought a hyperpixel square touch to use in kiosk mode, showing a webpage. I noticed that using it with a Pi4 the touch functionality is fine and the screen acts as a touch device, not showing the mouse cursor. When I attach the Hyperpixel to a Pi Zero 2W (which is the one I’d prefer to use actually), the touchscreen acts as a mouse: the cursor is displayed and the webpage doesn’t respond to javascript touch events but only to click events. Do you have any idea why this happens? And how can I make Hyperpixel act as a touchscreen on Pi Zero 2W too? Thanks for your help