https://macmagazine.com.br/wp-content/uploads/2020/11/18-tea...
This image shows it best.
The memory is on the same package as the SoC. (It's not on the motherboard.)