Well, it depends on what you mean by “the best way.” There is “the best way,” in the sense that you’re going to lose the most fat in a healthy way, and “the best way” in that you’re going to lose fat at a slower rate but it’s going to be an easier process.
If you want to lose fat quickly without starving yourself, then you want to go for an OMAD ketogenic diet. The main reason people put on fat is due to insulin, which is pumped out by your pancreas every time you eat, and in higher doses when you eat carbohydrates. An OMAD ketogenic diet addresses both of these issues.
For OMAD fasting, you want to limit your eating window to 1-2 hours a day, and fast for 22-23 hours. During your eating window, you want to get 5-10% of your calories from carbs, 15-30% from protein, and 60-75% from fat. Fat is going to be your main fuel source, because after a while of being on a ketogenic diet, your body goes into a state called ketosis where you start using fats (both dietary and bodily) as your main source of fuel, as opposed to carbohydrates. This can result in rapid weight loss in a healthy manner.
The other way is to simply do OMAD without keto, which means that you’ll be able to eat anything you want, but only within your eating window. If you decide to still consume carbs during this window, then that is most likely going to result in decelerated weight loss.
Either way, you’re probably going to lose weight, it just depends on your level of self-discipline and desired rate of weight loss.