The idiom "at the back of one's mind" refers to a thought or idea that is lingering in a person's subconscious, not immediately noticeable or conscious but still present and potentially affecting their actions or decisions.
It's often used to describe when someone has a thought that they're not aware of or trying to ignore but still influences their behavior.