If you set one branch ancestral to reptiles as the foreground, the assumption would be that there was adaptation in this gene in the common ancestor, perhaps due to acquisition of new function, but afterwards the gene has been conserved evolving under purifying selection. If you set the whole clade as the foreground, the hypothesis will then be that the gene has been under continual pressure to change or diversify under the same pressure on all branches within the whole reptilian clade. this may be the case if the gene is involved in defense or immunity.
I wonder whether you can tell whether that branch is ancestral to reptiles or ancestral to mammals.
One does not observe the ancestral gene sequences, but the modern sequences provide a lot of information about the ancestors. You can read a textbook on molecular evolution.
Ziheng