[Magisk] ivivaitylin:
Edit: Please see Didgeridoohan's post below mine for additional info/context before following this breakdown of what happened in the video.

TL;DW version:

Starting clean, install magisk.

Install the following modules through the magisk download section (You don't need to reboot after installing each module): 'Busybox', 'MagiskHide Props Config'

Install what I think is this? The video is not at all clear, but I believe it to be the latest version of riru from here: https://github.com/RikkaApps/Riru/releases

Install what appears to be the latest sandhook debug version of this: https://github.com/ElderDrivers/EdXposed/releases (Video technically uses the previous 0.5.1.3 revision but that was the latest version at the time the video was posted)

Go into Magisk Manager settings, enable the magisk hide toggle

Select the option above this, 'Hide Magisk Manager' and hide it with whatever setting you like.

Restart? Not too sure if this is needed here, video guy's phone froze here and had to be hard restarted.

If you check Safetynet inside of Magisk now you should now pass basicintegrity while failing ctsprofile.

Install EdXposed Manager (I assume this one: https://github.com/ElderDrivers/EdXposedManager/releases/ ) (Note: A version of this is installed while installing the Riru/EdXposed through Magisk, no idea if this version is different to that)

Install Termux (I assume this one: https://f-droid.org/packages/com.termux/ )

(Optionally) Install the following apps to confirm that everything has been successful once we are finished:

SafetyNet Test - Apps on Google Play

SafetyNet device compatibility test

play.google.com

SafetyNet | Integrity Checker - Apps on Google Play

SafetyNet | Integrity is way to check health and environment of device and app.

play.google.com

Root and SafetyNet Checker - Apps on Google Play

Let you know if your device is Rooted and checks if it passes SafetyNet

play.google.com

Open up EdXoposed manager and confirm the framework is active.

Go into EdXposed settings, scroll down to app list mode and enable, scroll down to 'Pass Safetynet' and enable.

Run Termux, type in:

su

Hit enter, grant root access. Type in:

props

Hit enter. Select the first option (Edit device fingerprint), then select 'Pick a certified fingerprint'

In the next screens select your phone manufacturer and model from the lists that appear.

Confirm you selected the correct device by selecting yes, and then reboot when requested.

Run termux, enter su and props again. Confirm that 'Edit device fingerprint' is now Active.

Select 'Force BASIC key attestation'

Select 'Pick from device list' and select your own device from the lists.

Confir you selected the right device and reboot.

Run termux, su, props. 'Edit devide fingerprint' and 'Force BASIC key attestation' should now be active.

Select 'Device simulation'

Select 'Device simulation' again. Confirm you want to enable basic device simulation.

Select 'ro.product.manufacturer'. Confirm you want to enable simulating 'ro.product.manufacturer'. Reboot.

It should now be working.

That said, I was following the instructions on my pixel 2 XL as I typed them out and I'm still failing safetynet so YMMV.

Edit: Did some digging, in the 'Force BASIC key attestation' section I neede to select a device which was similar but not exactly my device. In my case I used the regular Pixel 2. This got it working.