I’ll put it this way.
If you speak Portuguese you will speak and understand Spanish easily.
If you speak Spanish, you need to have a born aptitude for languages to learn Portuguese and sometimes even understand it.
Portuguese is a very clean accent language, while Spanish has a strong accent and hidden vocals.
The spanish struggle with the Clean accent , while Portuguese can easily understand it and apply it if needed.
I’m Portuguese by the way.