My first guess is that you likely have a bad hard drive especially if the iMac is using a hard drive. At the very least it appears either the file system or macOS is damaged since the no entry sign means a bootable OS is seen, but it is either damaged or not compatible. You can try running the Apple Diagnostics to see if any hardware issues are detected. Unfortunately the diagnostics don't detect all drive failures. It is possible to check the health of the drive by creating & using a bootable Linux USB stick depending on the exact model of your Mac. I can provide instructions if interested.
Here is an Apple article on how to deal with various startup issues (assuming the drive is healthy of course):
If your Mac doesn't start up all the way - Apple Support
I hope you have a good backup already. If you don't, then as soon as possible make a backup. If you have access to another Mac, then it may be possible to access the data by putting the iMac into Target Disk Mode (as long as the drive is healthy).