It's better to have the coffee hot.
1. It's better to keep the coffee hot.
2. It's better to drink the coffee hot.
3. Either 1 or 2 according to context.
Context for 1
It's better to have the coffee hot because she doesn't like lukewarm coffee.
Context for 2
It's better to have the coffee hot because cold coffee isn't good for your health.
So, I think the main sentence can mean 1 or 2 according to context.
Am I right?
Yes, but "the coffee" means some specific coffee, so if in (2) you are talking about coffee generally, delete "the".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Yes, but "the coffee" means some specific coffee, so if in (2) you are talking about coffee generally, delete "the".