Changing the bandwidth setting has the effect of changing the number of resource blocks in the LTE resource grid and consequently the number of subcarriers and IFFT points. However it does not change the sample time of the OFDM modulator in the Simulink model, which is why the Spectrum Analyzer does not show the correct frequency scaling by default.
You can change the sample rate setting of the Spectrum Analyzer so that it displays the correct frequency scaling without altering the sample time of the Simulink model. Click on View -> Spectum Settings (if the Spectrum Settings are not already displayed) and then change the Sample rate to the correct setting from the bandwidth table on the example help page. For example if you specify a bandwidth of 10 MHz then the corresponding sample rate would be 15.36 MHz. Alternatively you can set the Spectrum Analyzer Sample rate setting to
to pick up the sample rate automatically from the example parameters. Also, please note that the example automatically generates a correctly scaled spectrum plot once the simulation has completed.
Regarding FPGA implementation: in the example the Simulink sample time of the modulator is always set to 1. However on an FPGA this rate would correspond to one of the rates specified in the aforementioned bandwidth table. For example if you specify a bandwidth of 10 MHz then the modulator will use a 1024 point IFFT in the HDL implementation and you would need a 15.36 MHz sample rate on the FPGA.