Forex CFD liquidity provider

I am not a CFA student I just can’t find my answer anywhere on the web so sorry if my question is naive the institutional bank’s trade spot forex although they trade online right?
but for retailers, they just trade CFD or futures and in CFD they buy or sell to the market maker so if I am right to this point then how this liquidity providing from banks happen for retail traders through brokers (STP or NDD) because of brokers orders are CFD but the bank’s orders are spot forex?I can’t find the link between these two

thank you in advanced