With the advancement of digital technology, new means and methods are being offered in education to enhance teaching-learning. The use of technology in educational interventions has a positive impact on the students’ functional, cognitive, and psychomotor skills. This study aims to improve the teaching mode of ideological and political education (IPE). The research work intends to enhance enthusiasm of college students for ideological and political course (IPC). Based on 5G technology, the rising virtual reality (VR) technology is proposed in this study to improve IPC in colleges and universities. To begin with, the background of IPE and VR technology is introduced. Next, the current college students’ attitudes toward IPE and VR technology are investigated by a questionnaire survey. Finally, based on the red hero culture, the VR system for IPE is designed. Results of the evaluation show that the students who have been the members of the Communist Party have the highest degree of interest for IPC in colleges and universities. Endorsing the fact, about 29.7% college students and 26.81% university students who were members of the communist youth league favored for IPC, while only 14.29% of the masses showed interest for IPC. As a whole, 25.2% of all the students participated in the survey showed their interest for IPC. One of the main reasons behind the results is the teaching mode and means that attract students for IPC. At present, 84.11% of the ideological and political teachers give a lecture of IPC via PPT, while 67.29% of the students prefer the Internet platform as a means of IPC. About 73.4% of the students know VR and are interested in the application of VR to IPC. They believe that VR can help them understand the knowledge of IPC and has broad prospects in improving the teaching quality of IPE. The designed VR system for IPE which is used in colleges and universities has four modules, namely, the preamble module of graphic history, the hero wall module, the hero art sculpture module, and the scene experience module. This system can help realize the objective of IPE in colleges and universities and provides a reference for the application of VR in enhancing IPE.