I have the same issue pgadmin4 version 8.12, I tried to set Results grid from Preferences -> Query Tool -> Results grid -> Columns sized by, but it still looks like the stacked view you shared.
It is a common issue https://github.com/pgadmin-org/pgadmin4/issues/7963
Rolling back to 8.10 seems to solve the issue.