Some people work around this by making sure they only store supported codecs, either by being selective with media or offline transcoding (which can be instrumented with software like https://github.com/HaveAGitGat/Tdarr).
There's nothing "magic" here. Your options regardless of software are inherently:
1. Make sure to only store and stream supported media (as explained above)
2. Do the decoding and playback in a capable client (like mentioned above you can make it fairly seamlessly with the web client together with jellyfin-mpv-shim)
3. Live transcoding (may require tweaking drivers and codecs on your server; significantly increases server hardware requirements and load)
More info here: https://jellyfin.org/docs/general/clients/codec-support