Monterey is the last possible macOS for a late 2015 iMac. See the following from Identify your iMac model - Apple Support
iMac (Retina 4K, 21.5-inch, Late 2015)
Model Identifier: iMac16,2
Part Numbers: MK452xx/A
Newest compatible operating system: macOS Monterey
and
iMac (21.5-inch, Late 2015)
Model Identifier: iMac16,1
Part Numbers: MK142xx/A, MK442xx/A
Newest compatible operating system: macOS Monterey
macOS 12.7.6 (including Safari 17.6) was released July 29, 2024. See: Apple security releases - Apple Support
Apple has been releasing security updates for the current macOS and for two previous versions so it is likely that there won't be future security releases for Monterey after Sequoia is released later this Fall. You will however be able to run current versions of 3rd party internet browsers after you can no longer get a current Safari browser.