The yellow lines are a result of the new windows 1909 update implementation for the capture hook that allows for any application to be captured now.
Switching the window capture method to BitBlt will use the other method which does not produce the yellow border. However, this does not work with hardware accelerated applications. In order to capture programs like Chrome, ensure hardware acceleration is disabled in the advanced options of the browser.