When a white light ray falls on a prism, the ray at its first surface suffers:
both deviation and dispersion
When a beam of white light reaches the side of a prism, it undergoes refraction at the boundary of two media - air and glass and it also gets separated into its constituent colours.
Hence, on falling on a prism, the ray of light suffers both deviation and dispersion at its first surface.