This is only slightly true: if you buy a well-designed system and don't disable power management, a desktop will use more power but not substantially so unless you're actually using that extra capacity. If you buy some massive gaming / ML rig, yes, that'll use a lot more but it's a lot closer if you buy a comparable capacity and quality system.
The best way to see this is to buy a watt-meter and test it while doing what you normally do. Also remember that two decades ago you'd probably have had the computer _with_ a CRT sucking several hundred watts constantly, probably with some nice incandescent / halogen bulbs to keep things extra toasty, and a decade ago if you weren't using a Mac you probably had most of the power savings features disabled for system stability and/or compatibility. By now even the faster components have great power management when they're not fully loaded.