ESDEV-2223 Fix mobile theme builds

deprecated-removed function usage changed