Chosen Solution

Whenever I plug in an optical cable into my ps4 it is really loose. How can I fix this? I have tried other cables too.

If the optical port is loose then the only way to really fix it is to replace the port. These ports aren’t available new anywhere that I know of so you would need to have someone remove one from a junk PS4 motherboard and install it onto your motherboard. I’m assuming that you’ve tried a new cable just to make sure that the cable is not worn out on the end. I’m sorry there’s not an easy fix for this, but I hope my answer helps.