A lot of math and programming.
Long story short, the system (phone, computer, whatever) has software and sometimes hardware that quickly does the needed calculations to adjust to resolution to the screen. If it does not divide evenly a system of correction is used. Pixels are “averaged together” or combined in some way to make a fitting scaled down version.
Latest Answers