The best way, is to get an HDMI capture device that plugs into USB.
Here's an example that our clients purchase
4K HDMI Capture Card, HDMI to Type-C