If you do a dogpile.com or google search for catproofing your yard you will see several ways to do it. I put chicken wire at the top of my fence leaning in on rebar. Not that pretty but worth it especially with all that’s going on.
Both of mine are indoor only so that is how I am dealing with it. They get to go on our deck four stories up, but even if we had a house, maybe an outdoor cat play pen, but that is it. One of ours is a rescue so that was an agreement we had to make. The other will probably find a family for a second meal lol (he was 20 pounds at one point).