I would like to know how illumina platform like MiSeq or NextSeq knows which reads are from PhiX and which from the sequencing DNA? How is this differentiated at the beginning of sequencing?
After sequencing, during demultiplexing (separating reads into distinct fastq files based on sample indices you used when amplifying libraries) you'll lose anything from phiX (since it won't have any index you used).