For hot beverages in winter I use a stainless steel double-walled thermos, a Reduce Cold-1 that fits a standard water bottle cage. It's a bit heavier than Camelbak or Polar but worth it for the luxury of hot coffee, tea or whatever after 3 or 4 hours into a ride.
And in summer it'll stay cold even longer if I pre-freeze half the bottle. If I freeze the entire bottle it'll never thaw out in time for even a ride lasting several hours.
That's with the original solid top insulated cap. It'll take a standard water bottle lid with drinking nozzle, Camelbak or Polar, but the contents won't stay hot/cold quite as long.