I think there is something with which you can “paint” the fence, but don’t know if it would work. Electrifying the fence might also work. Is she doing it out of boredom/loneliness, or habit? You might also try having plenty of hay out there to keep her occupied.
It is never the horse's fault