I managed to get 5G on an unlocked Samsung S20. You need to use APN enhancedphone.
VOLTE and 5G may take a couple like some said. Make sure to call AT&T and update the IMEI, not sure if that helped.
Download the 4G switcher app and switch to UNKNOWN so it knows not to stick to 4G. Because that...