Google has only released revenue numbers: Roughly $15B in 2020[1]. Costs are difficult to judge, but in terms of infrastructure they are probably somewhat comparable to Netflix.
For 2020, Netflix had roughly $24B revenue and spent $1.8B on "technology and development" (which is where their infrastructure costs are)[2].
Unless you think Google is much less efficient than Netflix (which uses AWS for a lot of their tech[3]) then it's difficult to see how YouTube could not be profitable. Even if YouTube costs 3 times as much at Netflix to run (I don't see how) Google still has $10B revenue to pay creators for, and they control both how much they pay creators and how much they charge advertisers.
[1] https://www.theverge.com/2020/2/3/21121207/youtube-google-al...
[2] https://ir.netflix.net/financials/financial-statements/defau...
[3] https://s22.q4cdn.com/959853165/files/doc_financials/2021/q4...