Frivolously has 2 different meanings across 1 category:
Adverb
in a frivolous manner
"she spends her time frivolously enjoying the easy life of a rich and spoiled girl"
In a frivolous manner