National identity is indeed extremely complex.
We can see some Portuguese flags on balconies and windows in Rio de Janeiro, but if you ask most people how they feel about Portugal, most would say they'd rather want Portugal to lose. Same thing with Latin Americans when Spain was defeated; I saw lots of posts on social media mocking Spain coming from Latin Americans.
Funny thing is that Portugal apparently has a large number of people who support Brazil, watch Brazilian soaps and TV series, but everything that comes from Portugal is virtually unknown in Brazil. And God forbid you mention to a Brazilian that Portuguese spoken in Portugal is the "correct" way to speak.