Hello,
The two items I've highlighted from that article are why one CANNOT use any iMac as a monitor for a "new Mac Mini" via Target Display Mode.

Note the key date: 2019
You have the option of network screen sharing which will be laggy ("click-wait" etc). There are also third-party solutions like Luna/Duet Display but I have not tried those so do not know if if the lag issue remains.
Bottom line is that Apple began the deprecation of Target Display Mode in Late 2014 and threw the last shovel of dirt in its moribund face in Early 2020. It is dead tech.