Clickjacking has been a solved problem for over a decade. Set X-Frame-Options: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-...
The old school way is comparing the top level URL with JS and redirecting but there are ways to deal with that