You can check if your iPhone is 5G compatible by going to Settings > Cellular > Cellular Data Options and seeing if the Enable 5G option is available.