Unity remote click doesn't work

when I click my game object in unity it works but when I click it from unity remote it doesn’t work but when I put my mouse over the game object and click it through my phone it works.
I’m using unity input system

using UnityEngine;
using UnityEngine.InputSystem;

public class InputHandler : MonoBehaviour
{
public static InputHandler Instance { get; private set; }
public bool started;
#region Variables

private Camera _mainCamera;

#endregion

private void Awake()
{
    _mainCamera = Camera.main;
}
public void OnClick(InputAction.CallbackContext context)
{
    if (!context.started) return;

    var rayHit = Physics2D.GetRayIntersection(_mainCamera.ScreenPointToRay(Mouse.current.position.ReadValue()));
    if (!rayHit.collider) return;
    if (rayHit.collider.gameObject.name == "tati")
    {
        started = true;
        Debug.Log(started);
    }
}

}