EXACTLY MY POINT
You're more likely to come across a Mexican or Argentinian Spanish speaker than Spain Spanish speaker.
The reason why the flag for Spanish is the Spain flag is because they're not different enough of a dialect to differentiate between the two
Meanwhile, the flag for Portuguese is Brazil BECAUSE THEY ARE DIFFERENT AND BRAZIL IS LARGER