In principle, this is possible.
To operate the electric lunchbox from other voltage sources, you need an appropriate inverter that converts the 12 V or 24 V DC voltage into the required 230 V AC voltage. Please note that a constant output of 150 W is recommended.
You can find inverters, for example, in car accessory shops and also on the large online shop platforms.