Tesla batteries are so large and massive (~ 0.5 -- 1 tonne) that they're integrated into the frame as the entire floor of the automobile. This, incidentally, makes for a very low centre of gravity and high stability of the vehicle, though also a high kerb weight. Replacement is possible, and quickly, though requiring specialised equipment.
On hybrid petrol-battery EVs, the cells are included as modules, typically located under the rear seats (where the fuel tank of a conventional petroleum-fueled passenger car would be), which can be slid out in a matter of minutes as a DIY proccedure.
The batteries themselves weigh about 100 kilos and are rated for 100k -- 150k miles, which makes audunw's argument specious.
Toyota hybrid Camry DIY battery replacement: <https://piped.kavin.rocks/watch?v=nlvibjNUAXQ>
Toyota hybrid Prius DIY battery replacement: <https://piped.kavin.rocks/watch?v=FPXY0AqHHzI>
Toyota hybrid Camry battery warranty 10 year/150k miles: <https://pressroom.toyota.com/toyota-extends-battery-warranty...>