By installing the SimpleZoom Fabric mod , you get a convenient tool for viewing distant objects. It is very simple, but effective and has flexible settings.
By default, the Z button is used for approximation. It can be occupied by another mod, in which case it can be easily reassigned in the control settings. The configuration of the mod allows you to change the zoom ratio at your discretion, initially it is 5. If you do not play with Fabric, you can download SimpleZoom for Forge.