My CPAP mask has the hose attachment on top of my head, and it was messing up my growth pattern on top - I'm female, but with MS and fibromyalgia, I keep my hair short and spikey on top. I got a cap from Amazon that bikers use under their helmets - I dampen my hair on top, slick it back, and put on the cap - not only does my hair behave, but it makes it easier to put my mask on and take it back off.
I use this one....
Mission VaporActive Cooling Skull... https://www.amazon.com/dp/B01N5HF8DG?ref=ppx_pop_mob_ap_share