The ATmega328 (non p) isn't originally supported by the IDE. That's because the ATmega328 and the ATmega328p have different device signatures. If you want to use the ATmega328 with Arduino IDE, you'll have to install MiniCore, which have support for the non p version, as well as the rest of the family. simply select the correct versions in the variants menu.