Serve a topspin serve by not rotating into the court and staying sideways. Hit up on the ball and note the difference in the racquet path and the actual ball flight.
You’ll see that the ball goes in the direction of the strings while your racquet goes in another direction.The more serves you hit, the better you’ll know and feel how to control the ball by hitting it with topspin.