Kids in dream world

I remember it vaguely but I remember this movie about this girl and i think a black orphan kid in this weird dream world thing maybe. There was a scene with what i think was a lion (could be other kind of cat) in a ruin desert away looking for his family. I remember the end was really weird like moral of the story thing. I was like 9 when i saw it so it was probablt made from like 2008-2019 i think it was on a major streaming platform. but yeah please let me know! it’s killing me