Came here to say this. Oftentimes rankings within a particular field are not what you’d expect. Sometimes publics outrank Ivies - it depends on the field.
As for what you can do: get good grades, do research, have profs who can give you recs, study for the entrance exam, know the lay of the field. It’s not complicated like undegrad admisssions.