The issue was addressed with improved UI handling. This issue is fixed in Safari 16, tvOS 16, watchOS 9, iOS 16. Visiting a website that frames malicious content may lead to UI spoofing.
https://support.apple.com/en-us/HT213486
https://support.apple.com/en-us/HT213487
https://support.apple.com/en-us/HT213446