ref
late Middle English: from late Latin mentalis, from Latin mens, ment- ‘mind’.
From mental + -ly.
mentally (adv.)
early 15c., "intellectually, in the mind," from mental + -ly (2). In Middle English also "spiritually, in the soul."