When pointing the camera up at a building, we get an effect called Key stoning or tomb stoning. This is when the building looks as if it is leaning in. Of course there are “transform tools” in programmes like Capture One, Lightroom and Photoshop that enable you to correct this in post.
You can minimise it by trying to try and keep your camera on the same plane as your subject to avoid those sloping lines.
You will even notice that it makes a difference if you keep it in mind for mobile photography, you probably instinctively try and hold your phone so that it is straight.