Hi Philippe,
Thanks for your help! After further debugging, I found the issue—it was a mistake in my own code, unrelated to Matomo, JS, or browsers. Everything is fixed now and working perfectly on both mobile and desktop.
I appreciate your suggestions!