This is the reality of how signals work. If you zoom out to see several periods of the waveform it will look pretty square, if you zoom in on the edge it will always be slanted.
This is usually called "rise time" in specifications, and it's effected by the switching speed of the source and the input bandwidth of the measurement device. If both of those are infinite, it looks like a perfectly vertical line, but in reality, that cannot exist, so provided your equipment is fast enough, you will always be able to see that rise time.
That said, designers of scopes understand this, so even if your scope measures a single point on the low side and a single point after the full rise - what would appear as an instantaneous rise - the interpolation algorithm that draws the line between those points factors in the limited bandwidth of the scope and will always be at least slightly slanted.