One of the biggest issue/pain point in 3d printing for a while was to adjust the bed to make jt flat, or at least as flat as possible so that you can actually print without massive issues on the first layer. The process used to be manual, tedious and hit or miss (due to drift in the screws, or thermal expansion) etc.
Nowadays most new printers come with a sensor that probes the bed at multiple points (say in a grid of 4x4), then using for example a lagrange interpolation you can get a mesh that represents how flat your bed is. Then, using the visualisation you can either manually adjust the bed (with screws that rise or lower a certain corner), or even just let your printer compensate for the deviations.
That is, the printer moves the Z axis even when it is still printing on the same layer to make the print surface "virtually" flat (not always ideal if the Z axis stepper is trash, or if the deviation is too wide, or if there's too much vibration). That means that usually, the issue of bed levelling is mostly solved for newer printers!
Some printers also just use the nozzle itself as a probe, combined with a load cell. But those are usually on the higher end. The most common way is just a small probe of known size that sticks out and then calculates how much it extended before reaching the bed. (Some even use a pretty high res lidar to make sure the first layer is fine, even in some sub 900$ printers).
Even prusa is now using a load cell that apparently will be used for much more than just bed levelling (the load cell could be able to tell if filament is stuck, because the motor will push without extrusion leading to a variation in load for example). Very exciting times in 3d printing honestly (and I say that as someone that is pretty "bearish" on 3d printing usually)
Because there is a difference how your bed looks from 60 C for PLA to 110C for ABS.
Slicers have a setting for "Bed temperature initial layer" for exactly this reason.
I never heard of anyone printing PLA with 110C first layer.
Since the thickness of layers in a 3d print is around 0.1-0.3mm the margin for error is rather tight. Since no one is going to invest in precision ground printbeds you need to get that precision by some other method. One of those methods is to probe the bed height at various points before printing, and driving the Z-axis to correct for that during the print.
The linked tool can be used to visualize how nonflat your printbed is given a set of such probes. The default example seems to have a ±0.25mm error, which isn't amazing but should be usable with mesh leveling and not at all without.
This ensures that the first layer (arguably the most important) for any print is perfectly flat and level. This visualizer takes the output of the bed mesh calibration sequence (where each point is a z-offset, usually from what the printer has defined as 0 based on the end stop) and graphs it so you can see your bed deformation.
Most Klipper frontend UIs already have support for this though