Best Practices for Scaling and Positioning 2D Components Across Android Screen Sizes

I started using Unity again after almost 7 years, and back then, I primarily worked with 3D features. Now, I’m trying to create a 2D board game, but I’m realizing that I’m facing a lot of challenges with the sizing of components across different Android screen resolutions.

To address this, I’ve been using two scripts to position my components dynamically, which helps manage the layout automatically. I searched on YouTube and forums about this issue, and I found these scripts as a solution. However, I’m wondering if I might be missing any built-in Unity features that could simplify this process.

Is there a better way to handle component scaling and positioning for different screen sizes in Unity, especially for 2D games?

I’d appreciate any tips or guidance on this!