MDM is not easy but you can enroll devices after the fact, pre-enrollment isn’t the only option. But yes, it’s a PITA to deal with even at the best of times.
After the 30-day period, the enrolment profile cannot be removed on the device-side. This workflow applies for both iOS and macOS.