OnMouseDown works on Editor but not on my phone

Hello,
I’m making a game with images as clickable buttons. There is currently a weird problem: two images from a scene (Scene A) are not clickable on my phone despite being the opposite in the editor. To make the problem even more complicated, an image from Scene B, with the same script and the same way of implementation, is still clickable on both platforms. And yes, the images of scene A and the clickable image of scene B are exactly the same (the differences are only the sprites). Here is my code:

void OnMouseDown()
    {
        AudioClip audio = Resources.Load<AudioClip>("tap");
        AudioSource audiosrc = GetComponent<AudioSource>();
        audiosrc.PlayOneShot(audio);
        transform.localScale = new Vector2(transform.localScale.x / 1.5f, transform.localScale.y / 1.5f);
        SceneManager.LoadScene("MainMenu");
    }

Hey!

Run a quick debug statement inside your method to see if the event is running. To see that debug on your device you’ll have to launch the device debugger to check out any messages that are logged.

For a quick possible fix you could try focusing on testing touch point. I believe the Touch class should have everything you need to check for input.

Hope this helps.