If you select version “2.2.12 or later” from the Atlas Connect UI it will give you the legacy connection string.
Then just copy/paste that into your application and replace the existing mongodb+srv:// version.
mongodb+srv://