“A plastic Jiffy peanut butter jar works well. (Just throw away the stuff inside.)”
Not so fast! I have tried out a variety of lightweight plastic containers, and they all have heat issues. I use them for both hot and cold liquids, and some food mixing as well. Perhaps someone can help with a suggestion that addresses the OP and my concerns as well.
I like the Talenti gelato 8oz jars for their open mouth, but the wideness also makes it difficult to fit in my side pocket. When liquids are too hot, they start to bubble out at the bottom, and otherwise deform the jar:

I have tried a variety of 8 oz nut butter jars, mostly from Trader Joes, and while they have a better form factor for the side pocket, they deform even faster with hot water:

Nalgene offers an 8 oz wide-mouth straight-side jar that I have seen variously described as polypropolene and as lexan, there might be two versions, and I suspect that it can handle hot liquids, but it felt heavy in the hand when I spotted one. I can’t find a listed weight, but for sure it is heavy-ish. I wonder about some kind of modification to reduce the weight but am not sure if it will be enough:

Obviously, getting back to the OP, the hotter the liquid introduced, the longer it will stay hot, wrapped in bubble wrap, or whatever.