You can only replace the front-facing camera. Here is the [guide|102195|iPhone X Face ID tear down and analysis].
open