The solar panel is most efficient when its normal line points towards the sun. The best way is to keep your normal line pointed toward the sun. But the cost is too high.
If the solar panel is fixed, the installation angle should ensure that when the sun reaches its highest point, its normal line points toward the sun.
The height to which solar energy rises is related to local latitude. At the equator, it rises to 90 degrees, so the equator is installed towards the zenith. In mid-latitude areas, it is still possible to place it around 45 degrees. In polar regions, it faces the horizon.
A simple sentence is that the solar panel installation elevation angle = 90 degrees minus the local latitude.
In the area north of the Tropic of Cancer, the sun only appears in the southern sky all year round, so the solar panels face south.
In tro zonespicales south of the Tropic of Cancer. Tropic of Cancer and north of the Tropic of Cancer, The sun appears to the south in winter and to the north in summer, so the direction of the solar panels must be adjusted seasonally.
South of the Tropic of Cancer , the sun is in the north all year round and the solar panels face north