To my opinion, Mbappe was on offside position when the pass went through.
Per the rules, the intention was clear(the pass was meant for Mbappe who was already offside)
Whether the pass touches or deflects an opposite player, its practically offside.
Very controversial. Spain 🥵