The Canvas Scaler component is used for controlling the overall scale and pixel density of UI elements in the Canvas. This implementation replicates the native behaviour of the device it runs on.
You can find the documentation here.
Open Unity Package Manager and add a package from the following Git URL:
ssh://[email protected]/YousicianGit/NativeCanvasScaler.git?path=Packages/com.yousician.nativecanvasscaler