Apple absolutely will not tell you how much RAM is in an iPhone. They will hide how many milliamp hours the battery is. They won't even reveal the clock speed of their custom chipsets — it's not listed on the spec sheet. You can't even turn your own damn AirPods on or off your own damn self.
But why, though?
https://www.imore.com/why-apple-doesnt-talk-ram-battery-size-or-clock-speed