Don’t ground rules vary from park to park?
As I recall there was an orange line on the Shea Stadium outfield wall. If the ball hit above the line it was a home run even if it bounced back into the field of play.
Well, the rules copied from the rule book at the link are pretty clear.