How to know if someone plays on Mobile or PC ?

I want to check if someone plays on mobile or on pc.

If someone plays on mobile a panel will get activated (Move buttons etc.) and the Script get activated (the player has the script). If someone is on Pc only the skript will get activated (also the player has it).

using UnityEngine;

public class PlatformCheck : MonoBehaviour
{
    public GameObject mobilePanel;
    public PlayerMovement playerMovementScript;
    public MobilePlayerController mobilePlayerControllerScript;

    private void Start()
    {
        bool isMobile = IsRunningOnMobile();

        // Aktiviere das mobile Panel, wenn die Anwendung auf einem Mobilgerät läuft
        if (isMobile)
        {
            mobilePanel.SetActive(true);
            playerMovementScript.enabled = false;
            mobilePlayerControllerScript.enabled = true;
        }
        else
        {
            mobilePanel.SetActive(false);
            playerMovementScript.enabled = true;
            mobilePlayerControllerScript.enabled = false;
        }
    }

    private bool IsRunningOnMobile()
    {
        // Überprüfe, ob die Anwendung auf einem Mobilgerät läuft, basierend auf der Plattform
        if (Application.isMobilePlatform)
        {
            return true;
        }
        else
        {
            return false;
        }
    }
}