love hate relationship with myself ?

sometimes i absolutely love myself and i have amazing confidence but then other times i hate everything about myself and i wanna kill myself. can this be a symptom of a mental illness or am i just a mess ?