unity – How to make prefabs UI work on any canvas scaller?

I want to make my UI prefab working on all size of canvas reference resolution scaler because I already make one which is not prefab UI its work to all reference resolution but when I make it prefab and instantiate it it’s fit only specific resolution.

like this, I have reference resolution 2560×1440 which normally all UI will be set on that resolution and working fine on 720p or 1080p screen but make it prefab, it’s working only on the 2960×1440 screen.

on the 2560x1440

on the 1920x1080

on the 1280x720

here the script for instantiating that object

public static MM_PilihAyat instance;
    private void Awake()
        instance = this;

    public List<_PlayerInventory> playerInventories;

    public GameObject pilihAyatPrefab;
    public Transform contentHolderPilihAyat;

    public GameObject bacaPanel;
    public Transform bacaContent;

    private void Start()
        for (int i = 0; i < playerInventories.Count; i++)
            GameObject go = Instantiate(pilihAyatPrefab, transform.position, transform.rotation);
            MM_PilihAyatItem.instance.inventory = playerInventories(i);

    public void BackToBaca()
        MM_BacaPanel.instance.inventory = null;