I think the right question is: are they free cash flow-positive? I don't know the numbers off the top of my head. "Operating at a loss" means different things to different people.
Profit is an irrelevant metric for a company like YT that would reinvest every dollar of FCF into growth. (See Amazon for the well-fleshed out reasoning as to why this is so.)