Literally can be used in two ways. Usually, it is used like "I'm not joking," as in "Literally, I found the best skirt." which is light-hearted, but when you say "I'm literally dying." you're being very clear that you're actually dying. It can depend on the context, though.
Literal - It's making something obvious or serious