With the newer 2016+ USB-C models there isn't a whole lot you can do if it is truly a power issue as opposed to just a booting issue, with even less options for the M1/M2 Apple Silicon models.
I have found that sometimes disconnecting the charging cable from the laptop and reconnecting it again a minute later can sometimes trigger the laptop to power on (at least when using a USB-C charging port). Make sure the charger is connected directly to the Mac without any adapters and make sure to disconnect all other external devices. If using a USB-C charger, try using another port especially on the other side of the laptop if available.
Try unplugging the charger from the electrical outlet for a minute in order to reset the charger's internal circuitry. Maybe even try another electrical outlet.
Try closing and opening the laptop's display lid. Or try pressing any key on the built-in keyboard for a 2018+ model.
With the 2018+ models, sometimes the only way to know the Mac is powering on is by putting it into DFU Mode and connecting it to another Mac running macOS 10.15+ with the Apple Configurator 2 app. If the device goes into DFU Mode, then you can try "Restoring" the firmware to fix the issue, but this will destroy all data on the internal SSD. This is the last step before a hardware repair anyway and will likely be attempted by an Apple repair tech as well.
Revive or restore an Intel-based Mac using Apple Configurator - Apple Support
Revive or restore a Mac with Apple silicon using Apple Configurator - Apple Support