On the beach” means you are physically on the sand by the water. “At the beach” could mean that as well, but it could also mean you have traveled to the area associated with a beach, such as the town right next to the beach (like Ocean City or Rehoboth