How to adjust the screen for many types of screens in Android?

Hi, I have a project and I want to build it for Android.
I want to know, how to adjust the screen so I can play it well in many types of Android’s phones? (Since there are so many type of screens for Android).
I already tried many ways to do it, include the one in this thread : Is there a way to determine Android physical screen size? - Questions & Answers - Unity Discussions, but I can’t do it.

I already solved the problem with made a new class and scaling the panel which I put the background (so each of the gameobject will be scaling as well).