I suspect that it will be Aladdin and Jasmine getting the flashbacks for this episode, not Emma. I’m sure there will be parallels with Emma, but those will likely be present day scenes.
I see mostly this being a Emma centric bc i see any centric Aladdin/jasmine with flashbacks being called ” A whole new world”.