A search for a long-lived, heavy neutral lepton ( N ) in 139 fb - 1 of s = 13 TeV p p collision data collected by the ATLAS detector at the Large Hadron Collider is reported. The N is produced via W → N μ or W → N e and decays into two charged leptons and a neutrino, forming a displaced vertex. The N mass is used to discriminate between signal and background. No signal is observed, and limits are set on the squared mixing parameters of the N with the left-handed neutrino states for the N mass range 3 GeV < m N < 15 GeV . For the first time, limits are given for both single-flavor and multiflavor mixing scenarios motivated by neutrino flavor oscillation results for both the normal and inverted neutrino-mass hierarchies.